How Devengo paginates information for large collections

Pagination

All paginated collections return extra information to let API consumers know important API links to navigate the collection and the total_items in case the client needs to calculate the number of pages.

"links": {
    "self": "https://api.devengo.com/some-collection?page=4&page_size=20",
    "first": "https://api.devengo.com/some-collection?page=1&page_size=20",
    "prev": "https://api.devengo.com/some-collection?page=3&page_size=20",
    "next": "https://api.devengo.com/some-collection?page=5&page_size=20",
    "last": "https://api.devengo.com/some-collection?page=100&page_size=20"
},
"meta": {
    "pagination": {
        "total_items": 10000
    }
}