Pagination
Every endpoint that returns a list of objects, wraps the objects in the following structure:
{
"count": 1023,
"next": null,
"previous": "https://api.example.org/products/?page=3",
"results": [
...
]
}
The response always contains the following keys
| key | description |
|---|---|
| count | quantity of all available objects |
| next | link to the next page (set of data). if the page doesn't exist, it is null |
| previous | link to the previous page (set of data). if the page doesn't exist, it is null |
| results | list of requested objects |
You can send page and page_size query params to specify how much data you want to receive.
As a value of page param, you can use a number of the page or the word last to get the last page.
Default value of page_size is 10. The maximum value is 50.