Paginated APIs
A paginated API means that when you query the API, only the data records on the current page will be returned. It also includes other information, such as the total number of records, the total number of pages, links to other pages, and so on. The following is a sample response from a paginated API. It is a serialized pagination object, so it is in JSON format:
{ Â Â Â Â "links": { Â Â Â Â Â Â Â Â "first": "http://localhost:5000/recipes?per_page=2&page=1", Â Â Â Â Â Â Â Â "last": "http://localhost:5000/recipes?per_page=2&page=5", Â Â Â Â Â Â Â Â "prev": "http://localhost:5000/recipes?per_page=2&page=1", Â Â Â Â Â Â Â Â "next": "http://localhost:5000/recipes?per_page=2&page=3" Â Â Â Â }, Â Â Â ...