Skip to content

Commit

Permalink
GET /jobs/{job_id}/results: Recommendation to add a link with relat…
Browse files Browse the repository at this point in the history
…ion type `canonical` which points to a signed URL with the same content as the response. #397
  • Loading branch information
m-mohr committed Jun 4, 2021
1 parent ac1351e commit d8e58f5
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased / Draft

### Added

- `GET /jobs/{job_id}/results`: Recommendation to add a link with relation type `canonical` which points to a signed URL with the same content as the response. [#397](https://github.com/Open-EO/openeo-api/issues/397)

### Changed

- Updated STAC specification examples and references to v1.0.0.
Expand Down
27 changes: 24 additions & 3 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3048,6 +3048,11 @@ paths:
but regenerated with new expiration time.
Signed URLs that expired MAY return the openEO error `ResultLinkExpired`.
It is **strongly recommended** to add a link with relation type `canonical`
to the STAC Item or STAC Collection, which points to this STAC document
using a signed URL. This way the STAC metadata can be used by non-openEO
clients without additional authentication steps.
If processing has not finished yet requests to this endpoint MUST be
rejected with openEO error `JobNotFinished`.
tags:
Expand Down Expand Up @@ -3139,11 +3144,14 @@ paths:
roles:
- metadata
links:
- rel: item
- rel: canonical
type: application/json
href: https://example.openeo.org/api/download/583fba8b2ce583fba8b2ce/collection.json
- rel: item
type: application/geo+json
href: https://example.openeo.org/api/download/583fba8b2ce583fba8b2ce/item_1.json
- rel: item
type: application/json
type: application/geo+json
href: https://example.openeo.org/api/download/583fba8b2ce583fba8b2ce/item_2.json
application/geo+json:
schema:
Expand Down Expand Up @@ -3783,7 +3791,7 @@ components:
$ref: '#/components/schemas/stac_assets'
links:
type: array
description: >-
description: |-
Links related to this batch job result, e.g. a link to an
invoice, additional log files or external documentation.
Expand All @@ -3792,10 +3800,19 @@ components:
Clients MUST NOT download the data referenced in the links by
default.
It is **strongly recommended** to add a link with relation type
`canonical`, which points to this STAC document using a signed URL.
This way the STAC metadata can be used by non-openEO clients
without additional authentication steps.
For relation types see the lists of
[common relation types in openEO](#section/API-Principles/Web-Linking).
items:
$ref: '#/components/schemas/link'
example:
- rel: canonical
type: application/geo+json
href: https://example.openeo.org/api/download/583fba8b2ce583fba8b2ce/item.json
file_format:
x-additionalPropertiesName: File Format Name
title: File Format
Expand Down Expand Up @@ -4233,6 +4250,10 @@ components:
catalog service such as OGC CSW, a human-readable HTML version or a
metadata document following another standard such as ISO 19115 or DCAT.
6. `canonical` (primarily for batch job results): A signed URL
which points to this STAC document. This way the STAC metadata can
be used by non-openEO clients without additional authentication steps.
For additional relation types see also the lists of
[common relation types in openEO](#section/API-Principles/Web-Linking)
and the STAC specification for Collections.
Expand Down

0 comments on commit d8e58f5

Please sign in to comment.