Pagination
Last updated
Last updated
Some methods can return big lists. In this case Sort Me API returns not all results, but only subset of them. Such API methods are marked as .
Despite of the name Pagination, Sort Me's pagination approach does not use pages abstraction layer.
Instead of it, we have 2 pagination control parameters: count
and offset
.
offset
query parameter allows you to get all items after item, which has given ID.
In other words, when you make a request for method with pagination, you will recieve only first N items (each method has its own N constant).
If you want to receive next N items, you must provide query parameter offset
, holding an id of the last item of previously received list.
count
parameter is provided in every response to methods with pagination. It indicates total count of items you are able to get.