PaginationΒΆ
Any GET request can be paginated by adding the parameters limit and offset to the current parameter list.
Parameters:
Field |
Explanation |
---|---|
offset |
Defines the start position of the data returned |
limit |
Limits the number of results returned |
Response HTTP Headers:
Header |
Explication |
---|---|
X-Page |
Current page |
X-Per-Page |
Elements by page |
X-Total |
Elements total |
X-Total-Pages |
Pages total |
An example (using the /templates call) could be like this:
curl -i -X GET https://api.gigas.com/account/ACCOUNT_ID/templates?offset=5&limit=10 -H 'Authorization: apitoken' -H 'Content-Type: application/json'