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
Also, if you make POST, PUT, PATCH or DELETE requests, changes will be automatically saved to `db.json` using [lowdb](https://github.com/typicode/lowdb)
38
50
39
51
## Routes
40
52
41
-
Based on the previous `db.json`, here are all the available routes.
53
+
Based on the previous `db.json` file, here are all the available routes. If you need more customization, you can use the project as a [module](https://github.com/typicode/json-server#module).
42
54
43
55
```
44
-
GET /posts
45
-
GET /posts/1
46
-
GET /posts/1/comments
47
-
GET /posts?title=json-server&author=typicode
48
-
POST /posts
49
-
PUT /posts/1
50
-
PATCH /posts/1
51
-
DEL /posts/1
56
+
GET /posts
57
+
GET /posts/1
58
+
GET /posts/1/comments
59
+
GET /posts?title=json-server&author=typicode
60
+
POST /posts
61
+
PUT /posts/1
62
+
PATCH /posts/1
63
+
DELETE /posts/1
52
64
```
53
65
54
-
To slice resources, add `_start` and `_end` or `_limit`. An`X-Total-Count` header is included in the response.
66
+
To slice resources, add `_start` and `_end` or `_limit` (an`X-Total-Count` header is included in the response).
0 commit comments