Skip to content

Commit

Permalink
Merge pull request #19 from DevBadi/fix/postman-collection
Browse files Browse the repository at this point in the history
Fix Postman Collection (add X-Api-Key)
  • Loading branch information
JensMueller2709 authored Feb 28, 2023
2 parents ba0cd42 + 56478a7 commit b83dfc7
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions example/resources/aas_edc_extension.postman_collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,13 @@
"name": "1. Get contract offers for asset",
"request": {
"method": "GET",
"header": [],
"header": [
{
"key": "X-Api-Key",
"value": "password",
"type": "text"
}
],
"url": {
"raw": "{{consumer}}/api/automated/contractOffers?providerUrl={{provider-ids}}&assetId={{asset-id}}",
"host": [
Expand Down Expand Up @@ -110,7 +116,13 @@
"name": "2. Initiate negotiation with contractOffer",
"request": {
"method": "POST",
"header": [],
"header": [
{
"key": "X-Api-Key",
"value": "password",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"id\": \"DEFAULT_CONTRACT2:be592d75-a2df-4e39-a374-8d5728ce1b2b\",\r\n \"policy\": {\r\n \"permissions\": [\r\n {\r\n \"edctype\": \"dataspaceconnector:permission\",\r\n \"uid\": null,\r\n \"target\": \"-1379397334\",\r\n \"action\": {\r\n \"type\": \"USE\",\r\n \"includedIn\": null,\r\n \"constraint\": null\r\n },\r\n \"assignee\": null,\r\n \"assigner\": null,\r\n \"constraints\": [],\r\n \"duties\": []\r\n }\r\n ],\r\n \"prohibitions\": [],\r\n \"obligations\": [],\r\n \"extensibleProperties\": {},\r\n \"inheritsFrom\": null,\r\n \"assigner\": null,\r\n \"assignee\": null,\r\n \"target\": \"-1379397334\",\r\n \"@type\": {\r\n \"@policytype\": \"set\"\r\n }\r\n },\r\n \"asset\": {\r\n \"id\": \"-1379397334\",\r\n \"createdAt\": 1668680740459,\r\n \"properties\": {\r\n \"asset:prop:byteSize\": null,\r\n \"asset:prop:id\": \"-1379397334\",\r\n \"asset:prop:fileName\": null\r\n }\r\n },\r\n \"provider\": \"urn:connector:provider\",\r\n \"consumer\": \"urn:connector:consumer\",\r\n \"offerStart\": null,\r\n \"offerEnd\": null,\r\n \"contractStart\": null,\r\n \"contractEnd\": null\r\n }",
Expand Down Expand Up @@ -144,7 +156,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-ids}}&agreementId={{agreement-id}}&assetId={{asset-id}}",
"host": [
Expand Down

0 comments on commit b83dfc7

Please sign in to comment.