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

EOProduct asset improvements #1042

Open
5 tasks
alambare-csgroup opened this issue Mar 1, 2024 · 0 comments
Open
5 tasks

EOProduct asset improvements #1042

alambare-csgroup opened this issue Mar 1, 2024 · 0 comments
Assignees
Labels
dedl DEDL related enhancement New feature or request

Comments

@alambare-csgroup
Copy link
Collaborator

alambare-csgroup commented Mar 1, 2024

Standardize the data exposition in EO Products:

  • make sure we include the "downloadLink" as an asset in EOProduct for every plugins
  • configure it using something like:
        assets: >
          {$.assets#dict_update(
            [["downloadLink",[
              ["title","Full product download"],
              ["href","{downloadLink}"],
              ["roles",["data"]],
              ["type","application/zip"]
              ["order",[
                ["href","{orderLink}"],
                ["method","POST"],
                ["body",[
                  ["foo","bar"],
                ]],
              ]]
            ]]])
          }
  • downloadLink does not reflect clearly the content of the asset. Call the "downloadLink" asset "data" instead. The description should be adapted to the content and format of the asset

Assets returned are not always retrievable using a GET request. We should also support POST method.

  • For POST requests, add a method property in the asset with value set to POST. If not set we assume the request is GET

Some asset requests require a body like the datacubes datasets for example. At the moment, the body is added to the query params of the asset URL.

  • if the request requires a body, add a body property to the asset with the body value
@alambare-csgroup alambare-csgroup added enhancement New feature or request dedl DEDL related labels Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dedl DEDL related enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants