API Mock Generator
API Configuration
Generated Mock Code
// Generated code will appear here
Features
Multiple HTTP methods
Custom status codes
Response headers
Simulated delays
JSON response builder
Express.js code generation
Error simulation
FAQ
An API mock is a simulated endpoint that returns predefined responses, useful during development and testing when the real API is not available or when you need to test specific scenarios.
Select the HTTP method, define your endpoint path, set the response status code, and specify the response body. You can also add custom headers and simulate network delays.
Yes, you can generate mocks with different status codes (success, error), custom headers, and response bodies to test how your application handles various API responses.