No account, no schema, no configuration. Every array in what you paste becomes an endpoint — and the chaos controls work on it, so you can force a 503 against your own shapes rather than someone else's sample data.
Expires . Export it below if you want to keep it — that file runs on your machine and never expires.
| Resource | Records | URL |
|---|
This is the part no other mock service does — your data, failing how you ask.
A hosted mock that expires in a day is useful for a day. These files run offline, in CI, and long after this service is gone.
# one file, no install, no network — and the chaos controls still work node mock-server.mjs python3 mock_server.py # then, on your own machine: curl 'http://localhost:4000/todos?_status=503' curl 'http://localhost:4000/todos?_fail_rate=0.3'
The two servers are self-contained: your data is embedded in the file and
parsed at startup, so there is nothing to install and nothing to fetch.
They carry the same controls as the hosted API, which is the
part json-server cannot do — it will serve db.json
happily, but it cannot fail on demand.