Skip to content

Pagination of Search Results #5

@oliverroick

Description

@oliverroick

Context

Via the limit parameter STAC API allows specifying the number of results return from a search request. We want to support pagination, both by allowing to set limit and by allowing clients to request new pages.

The response of a POST search should include information about pagination and how to request the previous or next set results. How exactly pagination is implemented is up the provider of a STAC catalog, but in general the response contains a partial request payload or request headers that need to be included with the next request. (see examples)

Acceptance criteria

  • useStacSearch exposes a callback that allows clients to request the next page of results
  • useStacSearch exposes a callback that allows clients to request the previous page of results

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