Open-EO / openeo-api

The openEO API specification
http://api.openeo.org
Apache License 2.0
91 stars 11 forks source link

Batch jobs results: canonical link in canonical response? #508

Open soxofaan opened 10 months ago

soxofaan commented 10 months ago

(related to https://github.com/Open-EO/openeo-api/issues/507 and https://github.com/Open-EO/openeo-aggregator/issues/115)

Say /jobs/{job_id}/results has a canonical link, e.g. /jobs/{job_id}/results?signature=123. Can /jobs/{job_id}/results?signature=123 contain another canonical link, say/jobs/{job_id}/results?signature=456 e.g. with updated expiry timestamp?

Strict interpretation of

It is strongly recommended to add a link with relation type canonical, which points to this STAC document using a signed URL.

seems to forbid that: must be exact same document?

However, it would be useful for long term execution situations (and crossbackend execution) that the expiry of signed batch job result url can be bumped by this way.

m-mohr commented 10 months ago

I think that's fine. I'd also assume that if you request the signed document later and it was updated in the meanwhile (e.g. status, title) it is also updated.

m-mohr commented 9 months ago

Would you be up to create a PR for clairification? @soxofaan

soxofaan commented 9 months ago

-> #516

will conflict with #513 (#507)

m-mohr commented 9 months ago

Yes, I think #513 is not ideal.