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

Explicitly specify metadata filters for collections #396 #434

Merged
merged 3 commits into from
Dec 8, 2021
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `create-form` to link to the registration page
- `recovery-form` to link to the credentials recovery page.
- `GET /me`: New Relation types `alternate` and `related` for user-specific external pages. [#404](https://github.com/Open-EO/openeo-api/issues/404)
- `GET /collections` and `GET /collections/{collection_id}` (and implicitly `GET /jobs/{job_id}/results`): Added a field that can indicate which properties can be filtered on when loading data from a collection. [#396](https://github.com/Open-EO/openeo-api/issues/396)
- `GET /credentials/oidc`: Allow `authorization_code` and `urn:ietf:params:oauth:grant-type:device_code` (both without PKCE) as grants for `default_clients`. [#410](https://github.com/Open-EO/openeo-api/issues/410)
- Recommendation to add media types and titles to links for a better user experience.
- Allow the relation type `canonical` to be used generally for (shared) resources (e.g. UDPs or batch jobs) without requiring Bearer authentication. [#405](https://github.com/Open-EO/openeo-api/issues/405)
Expand Down
19 changes: 19 additions & 0 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1445,6 +1445,10 @@ paths:
- B10
- B11
- B12
'openeo:property_filters':
- platform
- eo:cloud_cover
- sat:orbit_state
summaries:
'constellation':
- Sentinel-2
Expand Down Expand Up @@ -4346,6 +4350,21 @@ components:
x-additionalPropertiesName: Dimension Name
allOf:
- $ref: '#/components/schemas/dimension'
'openeo:property_filters':
description: |-
Gives a list of properties you can filter on when loading data from the collection.
Returning an empty array means that no filters are available.
m-mohr marked this conversation as resolved.
Show resolved Hide resolved

This is a guide for users to get an overview over available filters.
m-mohr marked this conversation as resolved.
Show resolved Hide resolved
More metadata about the properties can be found in `summaries`.

If this property is not present, it means that the collections does
not provide any collection-specific details about available filters.
m-mohr marked this conversation as resolved.
Show resolved Hide resolved
It's then up to other means of documentation to inform the user,
e.g. there could be documentation about filters that work across collections.
m-mohr marked this conversation as resolved.
Show resolved Hide resolved
type: array
m-mohr marked this conversation as resolved.
Show resolved Hide resolved
items:
type: string
summaries:
title: STAC Summaries (Collection Properties)
description: |-
Expand Down