Most resource collections in the novomind iSHOP API can be accessed in pages. To easily navigate through these paged resources, every response contains a "page" object with additional information and links to the next and previous page.
See this example:
{
"links": [
{
"rel": "self",
"href": "https://novosales-alpha-ishop.novomind.com/ishop-api/shop/items/?page=2"
},
{
"rel": "prev",
"href": "https://novosales-alpha-ishop.novomind.com/ishop-api/shop/items/?page=1"
},
{
"rel": "next",
"href": "https://novosales-alpha-ishop.novomind.com/ishop-api/shop/items/?page=3"
}
],
"content": [...],
"page": {
"size": 100,
"totalElements": 9771,
"totalPages": 98,
"number": 2
}
}
The response returned page 1 of 98 pages with total 9771 elements. There is a "next" link to the next page and a "previous" link to the previous page. If these links are missing, there are no more pages into that direction.
There is a request parameters "limit" that can be attached to a request and controls how many resources are delivered with each page. The default is 100.