API Documentation
Pagination
Learn about how to handle pagination with Cepta
Overview
Pagination helps manage large datasets efficiently by breaking them into smaller, manageable pages. Cepta uses page-based pagination, allowing developers to request specific pages using query parameters.
Currently, only one endpoint requires pagination when integrating with Cepta:
Endpoint Requiring Pagination
/api/v1/static-accounts
Pagination Query Parameters
Parameter | Type | Description | Default |
---|---|---|---|
pageNumber | integer | The page number to retrieve. | 1 |
pageSize | integer | Number of records per page. | 10 |
Handling Pagination
- Navigating to the next page – Increment
pageNumber
, examplepageNumber=2
. - Retrieving more items per page – Increase
pageSize
examplepageSize=20
. - Checking for available pages – Use
hasPrevious
andhasNext
flags to determine navigation options.