You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-2Lines changed: 14 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -105,7 +105,7 @@ __Please help me build OSS__ 👉 [GitHub Sponsors](https://github.com/sponsors/
105
105
106
106
## Getting started
107
107
108
-
Install JSON Server
108
+
Install JSON Server
109
109
110
110
```
111
111
npm install -g json-server
@@ -142,7 +142,7 @@ Also when doing requests, it's good to know that:
142
142
- If you make POST, PUT, PATCH or DELETE requests, changes will be automatically and safely saved to `db.json` using [lowdb](https://github.com/typicode/lowdb).
143
143
- Your request body JSON should be object enclosed, just like the GET output. (for example `{"name": "Foobar"}`)
144
144
- Id values are not mutable. Any `id` value in the body of your PUT or PATCH request will be ignored. Only a value set in a POST request will be respected, but only if not already taken.
145
-
- A POST, PUT or PATCH request should include a `Content-Type: application/json` header to use the JSON in the request body. Otherwise it will return a 2XX status code, but without changes being made to the data.
145
+
- A POST, PUT or PATCH request should include a `Content-Type: application/json` header to use the JSON in the request body. Otherwise it will return a 2XX status code, but without changes being made to the data.
146
146
147
147
## Routes
148
148
@@ -239,6 +239,18 @@ Add `_like` to filter (RegExp supported)
0 commit comments