json-server icon indicating copy to clipboard operation
json-server copied to clipboard

Get a full fake REST API with zero coding in less than 30 seconds (seriously)

Results 291 json-server issues
Sort by recently updated
recently updated
newest added

```js products = [ { "id": 1, "type": 'A' }, { "id": 2 "type": 'B' }, { "id": 3, "type": 'A' }, { "id": 4, "type": 'C' }, { "id":...

Descending sort is not working Tried with below URL with example schema in readme. http://[localhost:3000/posts?_sort=id&_order=desc](http://localhost:3000/posts?_sort=id&_order=desc) Also http://[localhost:3000/posts?_sort=id&_order=desc](http://localhost:3000/posts?_sort=id&_order=DESC) Thanks Abhishek

get error on any delete request TypeError: Cannot read property 'toString' of null at /home/bogdan/projects/dms/server/node_modules/lodash-id/src/index.js:37:51 at baseFindIndex (/home/bogdan/projects/dms/server/node_modules/lodash/lodash.js:794:11) at findIndex (/home/bogdan/projects/dms/server/node_modules/lodash/lodash.js:7250:14) at Function.find (/home/bogdan/projects/dms/server/node_modules/lodash/lodash.js:5071:21) at Function.getById (/home/bogdan/projects/dms/server/node_modules/lodash-id/src/index.js:35:17) at /home/bogdan/projects/dms/server/node_modules/json-server/lib/server/mixins.js:26:25 at...

This does not work for me. Returns `Not found`. I use version `^1.0.0-beta.0`. ------- For nested resources to work, you need to structure your `db.json` this way: ``` json {...

It should be possible to be able to find the entries of another entity by using the foreign key. For example let's say we have two entities: `users` and `companies`....

Is there any other way to implement filtering by some value if it matches the query phrase? `http://localhost:3000/posts?title_like=searchPhrase` responds empty array but there are many matches in fact

For reference using the newest version "1.0.0-beta.1". Im Fetching from my employee category with http://localhost:3000/employees?_page=1&_per_page=10, but the response gives mit all the employees available in the db. Or am i...

{ "system":{ "menu":[] } } { "system/menu":[] } I access /system/menu but it is invalid

PNPM and NPM are reporting that it cannot find json-server from import statement within calling server.js file. server.js file ```javascript import jsonServer from 'json-server'; console.log('Starting JSON Server'); ``` package.json file...

Why I posted a document into a db but id could not increased by 1 . Ví dụ when I had a id: "1" then I post a elements but...