Pagination
Most list queries support pagination to ensure efficient and responsive data fetching. Examples of such queries are vehicles, operators, and reviews.
Implementing Pagination
Pagination is straightforward due to the structured approach. Each list query includes size and page arguments. The size argument specifies the number of items to receive per page, while the page argument indicates the page number to fetch. Both arguments are of type int.
Limits & defaults
To maintain API performance and prevent overfetching, size limits are enforced. The default limit is a maximum of 1000 items, except for the vehicleList query, which has a maximum limit of 100 items. If the size argument exceeds these limits, an error will be thrown.
In addition to these limits, the following defaults apply if the arguments are not specified in the query:
| Argument | Type | Default | 
|---|---|---|
| size | int | Default is set to 10 | 
| page | int | Default is set to 0 |