Skip to content

Pagination: use HTTP headers #11

@alekitto

Description

@alekitto

HTTP headers could be used for pagination (and ordering) in a more RESTful way.

Standard Accept-Ranges and Range HTTP header could be used to paginate lists.
My proposal is to adopt two custom units for ranges:

  • units or resources for limit-offset pagination
  • after or continue for passing a continuation token

A custom X-Order header could be introduced to set the list order, allowing an order field to be freely filtered without name collisions. In this case the header should have the following format:

  X-Order: token; ASC | DESC

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions