stac-fastapi icon indicating copy to clipboard operation
stac-fastapi copied to clipboard

Queryables endpoints should be referenced by link relation

Open philvarner opened this issue 2 years ago • 10 comments

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 avatar May 09 '22 13:05 philvarner

@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"
}

duckontheweb avatar Jul 10 '22 19:07 duckontheweb

correct. you could also add application/json as the type

philvarner avatar Jul 13 '22 19:07 philvarner

correct. you could also add application/json as the type

Wait, shouldn't this be application/schema+json per #400?

duckontheweb avatar Jul 26 '22 20:07 duckontheweb

Yes!

philvarner avatar Jul 26 '22 21:07 philvarner

Is this the reason it's now also gone from MS PC?

m-mohr avatar Mar 31 '23 08:03 m-mohr

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).

gadomski avatar Mar 31 '23 12:03 gadomski

I thought it had, but maybe I was always working around the limitation? Hmm... anyway, it should be there :-D

m-mohr avatar Mar 31 '23 16:03 m-mohr

I don't recall the link relation ever having been in the api.

philvarner avatar Apr 03 '23 13:04 philvarner

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. ;-)

m-mohr avatar May 23 '23 10:05 m-mohr

We now encountered this issue. I'll try my luck with a PR now.

constantinius avatar Jul 06 '23 08:07 constantinius