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

Accept header for /search requests? #429

Open
m-mohr opened this issue May 22, 2023 · 0 comments
Open

Accept header for /search requests? #429

m-mohr opened this issue May 22, 2023 · 0 comments
Milestone

Comments

@m-mohr
Copy link
Collaborator

m-mohr commented May 22, 2023

The specification says at https://github.com/radiantearth/stac-api-spec/tree/main/item-search for Item Search:

This search link relation must have a type of application/geo+json. If no method attribute is
specified, it is assumed to represent a GET request. If the server supports both GET and POST requests, two links should be included, one with a method of GET one with a method of POST.

Other links with relation search may be included that advertise other content types the server may respond
with, but these other types are not part of the STAC API requirements.

This is good, but it implies that the client may need to send an Accept: application/geo+json header because otherwise the server doesn't know which of the search link the client has selected. This is not overly clear in the spec and should probably be improved.

Related issue: opengeospatial/ogcapi-features#832

@m-mohr m-mohr added this to the 1.0.1 milestone Jul 4, 2024
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

1 participant