API Mock Server
中级testing最低上下文:16K
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.
使用场景
- 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
示例提示词
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.
推荐模型
兼容工具
claude-codecursorkiroany
模态
输入: text, code
→输出: code, text
相关 Skills
作者
OpenModels Community