Skip to content

Commit b35c032

Browse files
soxofaanm-mohr
andauthored
Add "OpenEO-Identifier" header to synchronous processing response (#533)
* Add "OpenEO-Identifier" header to synchronous processing response * Update openapi.yaml Co-authored-by: Matthias Mohr <[email protected]> --------- Co-authored-by: Matthias Mohr <[email protected]> Co-authored-by: Matthias Mohr <[email protected]>
1 parent 4250e31 commit b35c032

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111
- **New extensions:**
1212
- [Remote Process Definition Extension](./extensions/remote-process-definition/README.md)
1313
- Added `version` property to `GET /processes` [#517](https://github.com/Open-EO/openeo-api/issues/517)
14+
- `POST /result`: Added response header "OpenEO-Identifier" to expose an identifier associated with a synchronous processing request.
1415

1516
### Fixed
1617

17-
- `GET /file_formats`: Base paramater on top of normal JSON Schema, not Process JSON Schema
18+
- `GET /file_formats`: Base parameter on top of normal JSON Schema, not Process JSON Schema
1819
- `PATCH /services/{service_id}` and `PATCH /jobs/{job_id}`: Explicitly allow updating back-end specific properties (as in `POST`)
1920
- `GET /services/{service_id}` and `GET /jobs/{job_id}`: Explicitly allow listing back-end specific properties (as provided in `POST`)
2021
- `GET /jobs/{job_id}/results`: Clarify that signed URLs (used as "canonical" link) should be regenerated each time.

openapi.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2261,6 +2261,12 @@ paths:
22612261
description: MAY include the costs for processing and downloading the data.
22622262
schema:
22632263
$ref: '#/components/schemas/money'
2264+
OpenEO-Identifier:
2265+
description: Optionally, an identifier associated with the synchronous processing request.
2266+
schema:
2267+
type: string
2268+
pattern: '^[\w\-\.~]+$'
2269+
example: a3cca2b2aa1e3b5b
22642270
Link:
22652271
description: >-
22662272
The header MAY indicate a link to a log file generated by the request. If provided, the link MUST be serialized according to [RFC 8288](https://www.rfc-editor.org/rfc/rfc8288.html#section-3) and MUST use the relation type `monitor`. The link MUST follow the specifications for the links `GET /jobs/{job_id}/logs` and `GET /services/{service_id}/logs`, except that is MUST NOT accept any parameters (limit/offset). Therefore, the link MUST be accessible with HTTP GET, MUST be secured using a Bearer token and MUST follow the corresponding request body schema.

0 commit comments

Comments
 (0)