agera-edc / MinimumViableDataspace

Guidance on documentation, scripts and integration steps on using the EDC project results
Apache License 2.0
0 stars 2 forks source link

Add Asset - API #79

Closed chrislomonico closed 2 years ago

chrislomonico commented 2 years ago

Feature agera-edc/MinimumViableDataspaceFork#59

after agera-edc/MinimumViableDataspaceFork#135

Description

As a dataspace participant I want to add a new asset in order to share it with other participants in a subsequent step.

This action refers to creating an Asset and a DataAddress (pointing to the physical location of the data item) in the participant's connector. At this time, other dataspace participants do not yet have access to the Asset, because no ContractDefinition exists yet (#9).

The following steps are necessary:

  1. generate a DataAddress containing relevant information (bucket name, account name, etc.)
  2. generate an Asset object describing the data item
  3. call REST endpoint to insert the Asset/DataAddress tuple into the connector at POST /assets

In the first iteration of the MVD, composing the Asset/DataAddress is done through and aided by the connector's web UI using a simple text entry widget. So when the user selects AzureStorage the widget should only display input for those particular properties (Account, container, etc.).

Initially, we'll support the data address types AzureStorage (#6) and api with the following properties:

Note: Testing for AmazonS3 is out of scope for this story and should be shown as not supported

Note: The blob container to be added needs to exist prior to adding the asset.

Acceptance Criteria

Tasks

zeier commented 2 years ago

Not planned to cover this item by the Agera crew until end of August.