DEV Community

codebodhi
codebodhi

Posted on

MockGenServer – Instant Mock Responses from API Specs

Front-end and back-end teams often need to continue building while the real API isn’t ready. MockGenServer lets you upload an API spec and instantly get live mock endpoints — no local setup, no throwaway servers. Just register, upload, and start testing!

Getting Started

  1. Register for an API Key

Click the “Get API Key” button on the home page. This key will authenticate your mock requests.

  1. Upload Your OpenAPI Spec

Upload your spec (YAML or JSON). Once uploaded, the server generates live endpoints immediately.

  1. Use the Mock Endpoints

All requests must include your API key in the headers:

 GET https://mockgen.codebodhi.com/mocks/alerts
 x-api-key: YOUR_API_KEY_HERE
Enter fullscreen mode Exit fullscreen mode
  1. Explore Available Endpoints

After upload, the page lists all endpoints from your spec. Example:

GET https://mockgen.codebodhi.com/mocks/alerts
GET https://mockgen.codebodhi.com/mocks/alerts/active
GET https://mockgen.codebodhi.com/mocks/alerts/active/count
Enter fullscreen mode Exit fullscreen mode

Why MockGenServer?

  • Front-end and back-end teams can continue work without waiting for the real API.
  • No Docker, no local server setup—completely in-browser and cloud-hosted.
  • Live endpoints immediately available from your OpenAPI spec.

Try it now: https://mockgen.codebodhi.com

Top comments (0)