json-server pagination example
Example 1: json server
npm install -g json-server
Example 2: db.json
json-server --watch db.json
Example 3: json server paging
/*Use _page and optionally _limit to paginate returned data.
In the Link header you'll get first, prev, next and last links.
10 items are returned by default*/
GET /posts?_page=7
GET /posts?_page=7&_limit=20