json-server
json-server copied to clipboard
Get a full fake REST API with zero coding in less than 30 seconds (seriously)
Hello, I am using json-server 0.17.4 and I have setup some mock data like this one: ```javascript [ { "symbol": "AAPL", "date": "2023-09-30", "period": "FY" } ] ``` and when...
I've been looking for a way to config json-server to re-enable the logger from versions < v1. It's very useful to see a log of processed requests. Looking at the...
[Issue](https://github.com/typicode/json-server/issues/1497) Added logger as it was in previous version. ### Description - added `@tinyhttp/logger` package for logging - added `-q --quiet` flags for disabling logger ### How to test ```sh...
json-server --watch db.json C:\Users\purohit\AppData\Roaming\npm\node_modules\json-server\lib\bin.js:2 import { existsSync, readFileSync, writeFileSync } from 'node:fs'; ^^^^^^ SyntaxError: Unexpected token import at createScript (vm.js:80:10) at Object.runInThisContext (vm.js:139:10) at Module._compile (module.js:607:28) at Object.Module._extensions..js (module.js:654:10) at...
I have been working on a json-server project. I have used a docker image to create the json-server and deploy it. recently, i had issues with my image. after some...
Adds an optional `--delay` (`-d` short) option to the CLI to delay responses. **Changes:** - added a global middleware in `app.js` with a `setTimeout` that invokes `next` after the specified...
http://localhost:8080/products?_sort=price&_order=desc