#
Pagination
The easyroam API uses pagination to limit the amount of data returned in a single request. This is done to prevent the API from returning too much data at once, which could lead to performance issues.
Most endpoints that return a list of items require pagination and are marked with
Paginated
and will always return the following additional fields in the response:
They will also require you to provide the following parameters in the request in the json body:
Note
You must provide these parameters in the json formatted body of the request, not as query parameters.
The content type of the request must be application/json
.
Note
The offset
parameter is zero-based, meaning that the first item in the response will be the offset
th item in the list of all items. For example, if you want to get the first 10 items, you would set offset
to 0
and limit
to 10
. If you want to get the next 10 items, you would set offset
to 10
and limit
to 10
.
For example, for a collection with a total of 45 results, and each page containing 20 items the parameters for each page would be as follows:
Warning
The API will not return an error if you request a page that does not exist. Instead, it will return an empty list of items.