Mock a REST API endpoint

Get a public JSON endpoint to unblock your frontend before the backend exists.

When to use this

When the backend isn't ready, the frontend stalls. Stand up a mock that returns the exact JSON your UI expects, get a public URL, and build against it now — swap in the real API later.

Create the mock

curl -X POST https://quickmock.dev/api/mocks \
  -H 'Content-Type: application/json' \
  -d '{
  "method": "GET",
  "response_status": 200,
  "content_type": "application/json",
  "response_body": "{\"users\":[{\"id\":1,\"name\":\"Ada\"}]}"
}'

Call it

curl https://quickmock.dev/m/<slug>

What you get

{"users":[{"id":1,"name":"Ada"}]}

Build your own

Create a mock

← All guides