patricio0312rev/skills
API Mock Server
3 688e ex aequo sur 4 265 skills du métier Développement, par installations. Dans l'annuaire depuis le 18 novembre 2026.
Description
Vous guide dans la mise en place de serveurs d'API simulés avec MSW ou json-server, ce qu'il faut pour développer un frontend avant que le backend n'existe ou écrire des tests sans appeler de vraies API. Les exemples MSW couvrent le navigateur et Node.
Voir la description originale (anglais)
This walks you through setting up mock API servers using MSW or json-server, which is exactly what you need when you're building a frontend before the backend exists or writing tests without hitting real endpoints. The MSW examples are solid, covering both browser and Node setups with typed handlers, test overrides, and even GraphQL mocking. The json-server section shows the quick REST API approach with custom middleware for things like auth. It's pretty comprehensive on the mechanics, though you'll need to adapt the patterns to your actual API contracts. The fixture factory section gets cut off, but there's enough here to get mocking running in an afternoon.
Installer le skill
- 1Copiez la commande d'installation (bouton Copier, en haut de la fiche).
- 2Lancez-la dans un terminal, sur la machine où vous utilisez Claude Code.
- 3Demandez la tâche à Claude comme d'habitude : il charge le skill quand la demande s'y prête.