Skip to content

Commit

Permalink
Update postman collection
Browse files Browse the repository at this point in the history
  • Loading branch information
carlos-schmidt committed Mar 19, 2024
1 parent 50649ab commit 55ceb63
Showing 1 changed file with 22 additions and 26 deletions.
48 changes: 22 additions & 26 deletions example/resources/aas_edc_extension.postman_collection.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"info": {
"_postman_id": "8953f55e-787b-4b76-9c0b-7c1b15731185",
"_postman_id": "14677191-e263-4d83-ba13-d126c064b460",
"name": "EDC Extension",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "20511334"
Expand Down Expand Up @@ -207,19 +207,19 @@
"response": []
},
{
"name": "1. Get dataset for asset",
"name": "1. Get offer for asset",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{consumer}}/api/automated/dataset?providerUrl={{provider-dsp}}&assetId={{asset-id}}",
"raw": "{{consumer}}/api/automated/offer?providerUrl={{provider-dsp}}&assetId={{asset-id}}",
"host": [
"{{consumer}}"
],
"path": [
"api",
"automated",
"dataset"
"offer"
],
"query": [
{
Expand All @@ -242,7 +242,7 @@
"header": [],
"body": {
"mode": "raw",
"raw": "{ \r\n \"@context\": {\r\n \"edc\": \"https://w3id.org/edc/v0.0.1/ns/\",\r\n \"odrl\": \"http://www.w3.org/ns/odrl/2/\"\r\n },\r\n \"providerId\": \"provider\",\r\n \"consumerId\": \"consumer\",\r\n \"connectorAddress\": \"{{provider}}\",\r\n \"protocol\": \"dataspace-protocol-http\",\r\n \"counterPartyId\": \"provider\",\r\n \"counterPartyAddress\": \"{{provider-dsp}}\",\r\n \"contractOffer\": {\r\n \"id\": \"DEFAULT_CONTRACT24:-1268910060:3886d894-3955-4b06-83c6-e86fdeb5e65a\",\r\n \"policy\": {\r\n \"permissions\": [\r\n {\r\n \"edctype\": \"dataspaceconnector:permission\",\r\n \"target\": \"{{asset-id}}\",\r\n \"action\": {\r\n \"type\": \"USE\"\r\n }\r\n }\r\n ],\r\n \"target\": \"{{asset-id}}\"\r\n },\r\n \"assetId\": \"{{asset-id}}\"\r\n }\r\n}",
"raw": "{\r\n \"@context\": {\r\n \"edc\": \"https://w3id.org/edc/v0.0.1/ns/\",\r\n \"odrl\": \"http://www.w3.org/ns/odrl/2/\"\r\n },\r\n \"providerId\": \"provider\",\r\n \"protocol\": \"dataspace-protocol-http\",\r\n \"counterPartyId\": \"provider\",\r\n \"counterPartyAddress\": \"{{provider-dsp}}\",\r\n \"contractOffer\": <insert-offer-here>\r\n}",
"options": {
"raw": {
"language": "json"
Expand All @@ -267,7 +267,13 @@
"name": "3. Get data for agreement id and asset id",
"request": {
"method": "GET",
"header": [],
"header": [
{
"key": "x-api-key",
"value": "password",
"type": "text"
}
],
"url": {
"raw": "{{consumer}}/api/automated/transfer?providerUrl={{provider-dsp}}&agreementId={{agreement-id}}&assetId={{asset-id}}",
"host": [
Expand Down Expand Up @@ -944,6 +950,16 @@
}
],
"variable": [
{
"key": "asset-id",
"value": "",
"type": "default"
},
{
"key": "agreement-id",
"value": "",
"type": "default"
},
{
"key": "provider",
"value": "http://localhost:8181",
Expand Down Expand Up @@ -974,26 +990,6 @@
"value": "http://localhost:9192/management",
"type": "default"
},
{
"key": "asset-id",
"value": "",
"type": "default"
},
{
"key": "contract-offer-id",
"value": "",
"type": "default"
},
{
"key": "negotiation-id",
"value": "",
"type": "default"
},
{
"key": "agreement-id",
"value": "",
"type": "default"
},
{
"key": "docker-provider-connector-url",
"value": "http://provider:8181",
Expand Down

0 comments on commit 55ceb63

Please sign in to comment.