Problem/Motivation

We want to be able to paginate through results in collections (of entities and relationships). There are several pagination options, this ticket is about page based pagination.

Proposed resolution

  1. There is a maximum global page size (per collection type). Stored in the configuration object (defaults to 50 items) and overridable per resource (once we can alter the schema).
  2. We will use the page URL parameter. We'll support:
    • page[size] to override the page size (with a max cap by config).
    • page[number] to specify the page number.
    • page[offset] to specify the starting index for the objects to return. page[number] and page[offset] are mutually exclusive, they can't exist in the same request.
CommentFileSizeAuthor
#4 2742763--support-pagination--4.patch14.24 KBe0ipso

Comments

e0ipso created an issue. See original summary.

e0ipso’s picture

Issue summary: View changes
e0ipso’s picture

Assigned: Unassigned » e0ipso
e0ipso’s picture

Status: Active » Needs review
StatusFileSize
new14.24 KB

Added initial support for pagination. I created a follow up ticket to deal with the associated metadata (links and count).

#2746939: [FEATURE] Add pagination metadata

  • e0ipso committed 9e20763 on 8.x-1.x
    Issue #2742763 by e0ipso: [FEATURE] Add support for pagination
    
e0ipso’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.