API Mock Server
intermediatetestingMin 16K context
Generates mock API servers and stubbed responses from OpenAPI specs, sample payloads, or natural-language descriptions. Produces realistic fixture data, configurable latency and error scenarios, and ready-to-run mock servers using tools like Prism, MSW, WireMock, or json-server so frontend and integration tests can proceed without the real backend.
Use Cases
- Spinning up a mock server from an OpenAPI spec
- Generating realistic fixture responses for endpoints
- Simulating latency, rate limits, and error responses
- Creating MSW handlers for frontend tests
- Unblocking integration tests when the backend is unavailable
Example Prompt
Generate a mock server from this OpenAPI snippet for local frontend development.
Endpoints:
- GET /products (paginated list)
- GET /products/{id}
- POST /orders
Requirements:
- Realistic sample data
- Simulate a 500 error for one product id
- Use Mock Service Worker (MSW)
Provide the handler code and setup instructions.
Recommended Models
Compatible Tools
claude-codecursorkiroany
Modalities
Input: text, code
→Output: code, text
Related Skills
Author
OpenModels Community