Skip to content

Add Paginated Collection object #192

@hellopablo

Description

@hellopablo

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

Metadata

Metadata

Assignees

Labels

effort: highIssues which are considered a hard task

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions