Pagination

The number of elements of a resource can be enough huge to become in a overhead problem. Devices, channels, files,... Request the whole resource at once can have a penalty. We have implemented pagination for get-all-items requests.

Imclude two in-query parameters to make it happen:

  • start: first number of result where 0 is first. If the value is greater than the number of items, no items was returned; so take care of it.
  • limit: maximum number of items returned. If the value is 0, no limit is applied.

Paginated result has this shape:

Where _links field contains useful links to know current request and next page request addresses.