Skip to content

Generic way for warnings/deprecations on API response #412

@soxofaan

Description

@soxofaan

Use case: openEO platform aggregator implements /jobs listing the union of batch jobs across all underlying back-ends. At the moment the EODC back-end errors with something like "user ... does not exist and is not whitelisted", causing the whole aggregator response to fail too.
The workaround I'm currently working on is to skip the failed response of EODC and just list the jobs from other back-ends (e.g. VITO), which is better than returning nothing. It is however not ideal because user will not see that jobs are possibly missing due to a (temporary) issue at one back-end.

I think it would be good to have a somewhat generic way to indicate that there were (non-fatal) errors/warnings/deprecations/issues for a returned response.
For example:

  • Dedicated HTTP header, e.g. with at least a problem counter, or link to url with listing.
  • a dedicated link relation type to be used in "links" sections of JSON responses to link to url with listing.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions