Learn how to use pagination in the MarbleCMS API.
pagination
object with the following fields:
posts
array is empty and handle the empty state in your UI.nextPage
and previousPage
values to build navigation controls. These fields will be null
when navigation in that direction isn’t possible.Invalid page number
error
field in your response before processing pagination data.Invalid limit value
Empty datasets
totalPages
will be 0 and totalItems
will be 0. The posts
array will be empty.