Skip to content

Commit

Permalink
Update README.md to include sentence of how clients shall interpret l…
Browse files Browse the repository at this point in the history
…ast page (#450)

added sentence about how to handle last pages by omitting the corresponding link relations in the result.

Co-authored-by: Matthias Mohr <[email protected]>
  • Loading branch information
mhogeweg and m-mohr authored Jul 6, 2024
1 parent 356cb2b commit 7afc3fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions item-search/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,8 @@ The href may contain any arbitrary URL parameter:
Implementations may also add link relations `prev`, `first`, and `last`, though these are not required and may
be infeasible to implement in some data stores.

Clients shall interpret the absence of a link with the relation type `next` as an indication that the response represents the last page of results.

OAFeat does not support POST requests for searches, however the STAC API spec does. Hypermedia links are not designed
for anything other than GET requests, so providing a next link for a POST search request becomes problematic. STAC has
decided to extend the Link object to support additional fields that provide hints to the client as to how it must
Expand Down

0 comments on commit 7afc3fb

Please sign in to comment.