Skip to content

pagination example in hyper-schema #465

Closed
@dlax

Description

@dlax

In #448, a paginated collection example got added, with pagination handled using hyperschema links. This makes example fairly complicated, especially (I think) because the "thing-collection" schema is an object with metadata to hold pagination information instead of a plain array.

For some context on the initial discussion with @handrews and @philsturgeon, see #448 (comment).

Quoting @handrews #448 (comment)

Collections that are filterable or paginated/scrolling are unmanageable under hyper-schema without meta-data, and showing a "collection" that can't be filtered or paginated is not realistic.

I would don't see a compelling reason to use hyper-schema to handle pagination. In the "thing-collection" is a plain array, prev/next links could be HTTP Link headers I think. Maybe this design is less sophisticated, but I think it does the job.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions