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" }, ...