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/next link #83

Closed
matthewhanson opened this issue Jan 6, 2020 · 6 comments
Closed

pagination/next link #83

matthewhanson opened this issue Jan 6, 2020 · 6 comments
Labels
Collections Applicable to Collections (consider to use Part 2 instead) Progress: solution merged

Comments

@matthewhanson
Copy link

Features API requires a next link (rel=next) on search results, which seems like it belongs in Commons, especially if #82 is done.

An issue with next link is what happens if the query was a POST request, because converting that to a GET request could be problematic for large queries. One way would be for the implementor to use sessions and return a token to get the next page of results, but we didn't want that to be required.

Instead we return a next link that also has fields for the body and headers so that the user can use those to make the request again, along with the parameters returned in the next link. It's not very elegant by any stretch.

Regardless, I think Commons should include the next link, and can discuss what to do in the POST vs GET case.

@cmheazel cmheazel added Collections Applicable to Collections (consider to use Part 2 instead) general approach labels May 11, 2020
@cmheazel
Copy link
Contributor

Included

@cmheazel cmheazel added the Close label Jul 27, 2020
@m-mohr
Copy link

m-mohr commented Aug 19, 2020

While I see the next relation type being included, it's not clear how standards should behave in non-GET requests. Doesn't seem useful to let this open. Then each extension will define their own behavior. For reference, here's one "extension" defining it: https://github.com/radiantearth/stac-api-spec/blob/master/api-spec.md#paging-extension
cc @matthewhanson

@cmheazel
Copy link
Contributor

@m-mohr The next association is based on the similar capability in WFS. It supports a serial progression through an ordered set of pages which constitute the response to a request. As such, GET is the only applicable operation.

@cmheazel cmheazel added enhancement New feature or request and removed Close general approach labels Aug 24, 2020
@ghobona
Copy link
Contributor

ghobona commented Aug 24, 2020

Cc: @pvretano @cportele This could be an enhancement for future extensions of OGC API - Features and Records.

@cmheazel
Copy link
Contributor

cmheazel commented May 5, 2021

@ghobona The support for the next association in API-Common is based on a similar capability in API-Features.

@cmheazel cmheazel added Progress: solution merged and removed enhancement New feature or request labels May 5, 2021
@cmheazel
Copy link
Contributor

5/10/21 SWG - OK to close.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Collections Applicable to Collections (consider to use Part 2 instead) Progress: solution merged
Projects
Development

No branches or pull requests

4 participants