Build an API Mock Server
Build a configurable API mock server with a web UI for defining endpoints and their responses.
Requirements
Web UI to define mock endpoints: method, path, response body, status code, headersSupport GET, POST, PUT, PATCH, DELETE methodsDynamic path parameters (e.g., /users/:id)Response delay simulation (configurable latency)Request logging: show all incoming requests with timestamp, body, headersImport/export endpoint configurations as JSONActual HTTP server that responds to real requestsTechnical Notes
Use Next.js API routes with catch-all route [...path]. Store mock definitions in server state or file.
Bonus Points
Fake data generation using Faker.jsResponse templates with variablesProxy mode (forward to real API, record responses)