Data Link Pagination
When working with data links that return lists, use the start and count parameters in the URL to control which items are returned and how many are included in the response.
The start and count parameters are as follows:
- start Parameter
-
Use the start parameter to specify the index of the first item to return. This is helpful when you want to skip a number of items in a dataset.
-
-
start=0
returns results from the beginning of the list. -
start=10
skips the first 10 items and starts from the 11th.
-
-
count Parameter
-
Use the count parameter to specify how many items to return.
-
-
count=25
returns 25 items starting from the index defined by start.
-
Together, these parameters support pagination, which helps manage large datasets by breaking them into smaller, more manageable chunks. For example, to retrieve 20 records starting at record number 40 from the People Units data link on the Course Learners screen in ebs: ontrack Hub, use the following URL:
-
{{url}}/Rest/Modules/15866/Screens/CourseLearners/Data/PeopleUnits/start/40/count/20?p_uio_id=635
start
and count
parameters must be added to the URL before the ?
that defines the start of any data link parameters.