-
Notifications
You must be signed in to change notification settings - Fork 178
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
HTTP additions for links #1198
Comments
Wait for #1199 to be merged, then we can fix it in a single location. |
Might also be useful for assets? |
We have an additional use case (for method="POST"), where we are using a STAC asset to provide an (OGC kind-of) offering allowing to "order" (make the product available "online") via an ordering URL. The "order" is done via a link and method="POST" (with an empty/optional payload) and we would expose this I/F as a STAC asset as shown below.
|
It would be nice if the link properties could be extended to allow for templated links as proposed by https://docs.ogc.org/DRAFTS/20-004.html#sc_templated_links_with_variables. An collection asset representing an OGC WCS offering (GetCoverage) could then be provided with the allowed parameters and a client application (STACBrowser) can then replace them with actual values based on user choices. |
@ycespb Templated links are blocked by opengeospatial/ogcapi-records#275 (comment) and related issues in OGC. |
Yet another use case is the example-links extension: https://github.com/stac-extensions/example-links#fields Drawback: |
I'm 👍🏼 from the implementation side. I found it most natural to pull the HTTP methods into my core |
Agreed to add method, headers and body as defined in the API spec to align both specs. |
In STAC API spec we have additional properties for links:
At least the
method
should be added to stac-spec as it could be helpful to specify e.g. the method for links (e.g. POST vs GET search or in stac-extensions/order#9).headers
andbody
could also be added as a general framework for HTTP requests. I thinkmerge
only makes sense in the specific API context.They are described here (weirdly hidden in the Pagination section):
https://github.com/radiantearth/stac-api-spec/blob/604ade6158de15b8ab068320ca41e25e2bf0e116/item-search/README.md#pagination (scroll down to the table)
The text was updated successfully, but these errors were encountered: