json-server
JSON Server is a tool that allows you to create a complete REST API server using a JSON or JSON5 file. It is installed with npm and allows HTTP requests to be made in the local environment by starting from the command line. It also directly supports advanced interrogation capabilities such as filtering, sorting, and pagination.
typicode · DevOps / Build / Infra
Common commercial products in this category: GitHub Actions, CircleCI, Atlassian Bamboo
- You can start a REST API on the local server by creating db.json or db.json5 file
- You bring the records associated with the _embed parameter (e.g. the comments of a post) together in one request.
- You can run advanced queries for filtering, sorting, and pagination operations on data
- • High number of open issues (723)
- • NeutralGitHub Issue
custom resource id
“Currently, an option to set a custom id is provided using commandline option `--id id` Is it possible to make id set to a format something like this : `--id resource_id` where resource is the name of the resource... So when you run `json-server db.json --id resource_id`, the…”
- • NeutralGitHub Issue
Has the --delay option been removed?
“I'm attempting to simulate a delayed response from my server for development purposes using json-server. I used the following command to start the server, intending to introduce a 5000ms delay to responses: `json-server --delay 5000 --watch data/cities.json --port 8000` However,…”
Verified against README · Oct 25, 2026 · source