You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PB-1677: Add "properties." prefix to sortby params
Follow-up of #664: Prepend `properties.` to certain parameters used in
the `sortby` query parameter and in the `/sortables` endpoint:
- `datetime` -> `properties.datetime`
- `title` -> `properties.title`
- `created` -> `properties.created`
- `updated` -> `properties.updated`
- `id` and `collection` stay unchanged (top-level fields)
In #663, we chose to omit the `properties.` prefix for the `sortby`
query parameter. So we refer to `datetime`, not `properties.datetime`.
This was because the "query" parameter of the [POST /search
endpoint](https://data.geo.admin.ch/api/stac/static/spec/v1/apitransactional.html#tag/STAC/operation/postSearchSTAC)
also omits the `properties.` prefix.
Looking into the STAC Browser code, however, I see that the
`properties.` prefix is the assumed default. I think then it would be
better to follow the STAC Browser. The Query extension will anyway be
replaced by the Filter extension (see PB-2392), so the inconsistency is
ok.
0 commit comments