Creating Contract and Rules for Resource, to offer a Resource #81
-
From the links below, it is stated that an offered resource is only complete if it contains at least one contract offer and at least one representation with at least one artifact: https://international-data-spaces-association.github.io/DataspaceConnector/Documentation/DataModel And also stated from the link below that the rule is the object, that contains the usage policy as value: Since we get the endpoint (POST /api/examples/policy) to obtain example policies, which in my case produced this result: Is this result supposed to be attached/pasted to the "value" field of a Rule object that we will relate to a certain contract, or is there any specific value that we should put into the "title" and "value" fields, or how is this usage policy/control should be established? This question came out, since I attempted to create a Resource offer along with the Contract, Rules, Representation, Artifact and Catalog for that specific resource but I still couldn't manage to get/see the corresponding resource attached to the exposed Catalog through the (POST /api/ids/description) endpoint as shown in the pic below: And when I try to request for the Resource offer directly using the Resource id as the elementId, I get this result below However, the console log also gives this hint: Is there any additional steps required to proceed with testing the IDS way of data sharing? |
Beta Was this translation helpful? Give feedback.
Replies: 0 comments 2 replies
-
Hello IDS Team, |
Beta Was this translation helpful? Give feedback.
-
@danniarreza Looks good at first glance. But since I don't know your exact calls and parameters: Have you already taken a look at our scripts and compared if something is missing when adding resources? Did you e.g. probably miss to link the catalog and resource? https://github.com/International-Data-Spaces-Association/DataspaceConnector/tree/main/scripts/tests |
Beta Was this translation helpful? Give feedback.
@danniarreza Looks good at first glance. But since I don't know your exact calls and parameters: Have you already taken a look at our scripts and compared if something is missing when adding resources? Did you e.g. probably miss to link the catalog and resource? https://github.com/International-Data-Spaces-Association/DataspaceConnector/tree/main/scripts/tests