Add a paginated collection object which can be used by things like the CRUD API or Elasticsearch Search results to wrap content which can be paginated.
You pass it the current page of results, the total, the current page, the base URL etc and it will provide an interface for iterating over that set, as well as provide automatic Next and Previous URLs.
It can handle all the weird edge cases of zero-indexed vs one-indexed paging, out-of-bounds requests, etc
Add a paginated collection object which can be used by things like the CRUD API or Elasticsearch Search results to wrap content which can be paginated.
You pass it the current page of results, the total, the current page, the base URL etc and it will provide an interface for iterating over that set, as well as provide automatic Next and Previous URLs.
It can handle all the weird edge cases of zero-indexed vs one-indexed paging, out-of-bounds requests, etc