mirror of
https://github.com/typicode/json-server.git
synced 2025-07-28 12:43:18 +08:00
Update README.md
This commit is contained in:
@ -50,11 +50,12 @@ PATCH /posts/1
|
|||||||
DEL /posts/1
|
DEL /posts/1
|
||||||
```
|
```
|
||||||
|
|
||||||
To slice resources, add `_start` and `_end`. An `X-Total-Count` header is included in the response.
|
To slice resources, add `_start` and `_end` or `_limit`. An `X-Total-Count` header is included in the response.
|
||||||
|
|
||||||
```
|
```
|
||||||
GET /posts?_start=0&_end=10
|
GET /posts?_start=20&_end=30
|
||||||
GET /posts/1/comments?_start=0&_end=10
|
GET /posts?_start=20&_limit=10
|
||||||
|
GET /posts/1/comments?_start=20&_end=30
|
||||||
```
|
```
|
||||||
|
|
||||||
To sort resources, add `_sort` and `_order` (ascending order by default).
|
To sort resources, add `_sort` and `_order` (ascending order by default).
|
||||||
|
Reference in New Issue
Block a user