GET /api/colors?state=active&pageSize=30).
Two pagination modes
Pagination has two mutually exclusive modes on the same endpoint:- Page-based
- Cursor
Use
pageSize and pageNumber together with any filter and sort:The pagination object
List responses include apagination block:
cursor back on the same endpoint.
Filtering
As much as possible, every field in the response is available as a query-parameter filter, and filter values match the format returned in responses (e.g.state=active,
not state=1).