Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add collection paging #510

Closed
gadomski opened this issue Jan 10, 2023 · 1 comment
Closed

Add collection paging #510

gadomski opened this issue Jan 10, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@gadomski
Copy link
Member

Collection pagination was defined in radiantearth/stac-api-spec#221. It could be useful for large catalogs (e.g. the Planetary Computer).

@vincentsarago
Copy link
Member

vincentsarago commented Jul 24, 2024

in v3.0, users are able to set the request model for the /collections endpoint (without needing the collection-search extension), so you can now enable pagination extension for the /collections endpoint.

Note: it's up to the user to set the correct conformance classes in the Client

api = app.StacApi(
    settings=ApiSettings(),
    client=...,
    collections_get_request_model=TokenPaginationExtension().GET,
    extensions=[
        TokenPaginationExtension()
    ],
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants