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

[pagination] Implement offset #6

Open
jeanpommier opened this issue Sep 5, 2023 · 2 comments
Open

[pagination] Implement offset #6

jeanpommier opened this issue Sep 5, 2023 · 2 comments

Comments

@jeanpommier
Copy link
Member

jeanpommier commented Sep 5, 2023

The limit parameter allows to retrieve just a chunk of the dataset. But for pagination to be really usable, we also need

  • to be able to set the offset
  • to be certain that the features' order will be the same between 2 queries with a different limit+offset setting
@groldan
Copy link
Member

groldan commented Sep 6, 2023

offset is used, but the spec doesn't say how to implement pagination, it only tells the response shall contain a link to the next page.
So those links do use an offset query parameter, if you look at a geojson feature collection response, for example

@jeanpommier
Copy link
Member Author

Would it be complicated to add the offset as an explicit param in the OpenAPI form ?

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

No branches or pull requests

2 participants