stac-fastapi
stac-fastapi copied to clipboard
Queryables endpoints should be referenced by link relation
The queryables endpoints should be reference by a link relation on the root/landing and each collection with the rel http://www.opengis.net/def/rel/ogc/1.0/queryables
. Currently they are not.
@philvarner I can tackle this.
Just to be clear, the rel
type of the link should be http://www.opengis.net/def/rel/ogc/1.0/queryables
? So the link would look something like this?
{
"rel": "http://www.opengis.net/def/rel/ogc/1.0/queryables",
"href": "http://localhost:8080/queryables",
"title": "Queryables"
}
correct. you could also add application/json as the type
correct. you could also add application/json as the type
Wait, shouldn't this be application/schema+json
per #400?
Yes!
Is this the reason it's now also gone from MS PC?
Was it ever there? I didn't find it in any past versions (e.g. https://web.archive.org/web/20210421160618/https://planetarycomputer.microsoft.com/api/stac/v1).
I thought it had, but maybe I was always working around the limitation? Hmm... anyway, it should be there :-D
I don't recall the link relation ever having been in the api.
Not sure whether this is a motivation, but STAC Browser will not work around this limitation anymore so advanced filter support is effectively not available for fastapi deployments in STAC Browser any longer until this gets fixed. ;-)
We now encountered this issue. I'll try my luck with a PR now.