Skip to content

Commit

Permalink
Merge pull request #154 from catenax-ng/release/v2.0.0-transmission-pass
Browse files Browse the repository at this point in the history
[1°] - Release/v2.0.0 transmission pass: Added transmission pass support for frontend
  • Loading branch information
matbmoser authored Dec 22, 2023
2 parents 43db85e + d442704 commit c799856
Show file tree
Hide file tree
Showing 18 changed files with 1,658 additions and 166 deletions.
157 changes: 156 additions & 1 deletion src/assets/MOCK/dpp.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,160 @@
{
"metadata": {},
"metadata": {
"contract": {
"@id": "5c4fbb7d-cf02-4401-a7a3-f0ec1c506f33",
"@type": "dcat:Dataset",
"odrl:hasPolicy": {
"@id": "2:1f4a64f0-aba9-498a-917c-4936c24c50cd-49a06ad2-64b7-46c8-9f3b-a718c462ca23:ac45d75a-2542-4d1a-a0fc-034c705418a9",
"@type": "odrl:Set",
"odrl:permission": [],
"odrl:prohibition": [],
"odrl:obligation": [],
"odrl:target": "1f4a64f0-aba9-498a-917c-4936c24c50cd-49a06ad2-64b7-46c8-9f3b-a718c462ca23"
},
"dcat:distribution": [
{
"@type": "dcat:Distribution",
"dct:format": {
"@id": "HttpProxy"
},
"dcat:accessService": "1795254a-e354-46c7-9d88-04608b05ca9f"
},
{
"@type": "dcat:Distribution",
"dct:format": {
"@id": "AmazonS3"
},
"dcat:accessService": "1795254a-e354-46c7-9d88-04608b05ca9f"
}
],
"edc:description": "Battery Passport test data",
"edc:id": "1f4a64f0-aba9-498a-917c-4936c24c50cd-49a06ad2-64b7-46c8-9f3b-a718c462ca23"
},
"negotiation": {
"init": {
"request": {
"@context": {
"odrl": "http://www.w3.org/ns/odrl/2/"
},
"@type": "NegotiationInitiateRequestDto",
"connectorAddress": "https://materialpass.dev.demo.catena-x.net/BPNL000000000000/api/v1/dsp",
"protocol": "dataspace-protocol-http",
"connectorId": "BPNL00000000CBA5",
"offer": {
"offerId": "2:1f4a64f0-aba9-498a-917c-4936c24c50cd-49a06ad2-64b7-46c8-9f3b-a718c462ca23:ac45d75a-2542-4d1a-a0fc-034c705418a9",
"assetId": "1f4a64f0-aba9-498a-917c-4936c24c50cd-49a06ad2-64b7-46c8-9f3b-a718c462ca23",
"policy": {
"@type": "odrl:Set",
"odrl:permission": [],
"odrl:prohibition": [],
"odrl:obligation": [],
"odrl:target": "1f4a64f0-aba9-498a-917c-4936c24c50cd-49a06ad2-64b7-46c8-9f3b-a718c462ca23"
}
}
},
"response": {
"@id": "83892309-6b65-4597-b36a-f86bb7b42f2c",
"@type": "edc:IdResponseDto",
"edc:createdAt": 1688393668476,
"@context": {
"dct": "https://purl.org/dc/terms/",
"tx": "https://w3id.org/tractusx/v0.0.1/ns/",
"edc": "https://w3id.org/edc/v0.0.1/ns/",
"dcat": "https://www.w3.org/ns/dcat/",
"odrl": "http://www.w3.org/ns/odrl/2/",
"dspace": "https://w3id.org/dspace/v0.8/"
}
}
},
"get": {
"response": {
"@id": "83892309-6b65-4597-b36a-f86bb7b42f2c",
"@type": "edc:ContractNegotiationDto",
"edc:type": "CONSUMER",
"edc:protocol": "dataspace-protocol-http",
"edc:state": "FINALIZED",
"edc:counterPartyAddress": "https://materialpass.dev.demo.catena-x.net/BPNL000000000000/api/v1/dsp",
"edc:callbackAddresses": [],
"edc:contractAgreementId": "2:1f4a64f0-aba9-498a-917c-4936c24c50cd-49a06ad2-64b7-46c8-9f3b-a718c462ca23:b631f6a1-75b5-497b-ae3d-0413d6dd87fb",
"@context": {
"dct": "https://purl.org/dc/terms/",
"tx": "https://w3id.org/tractusx/v0.0.1/ns/",
"edc": "https://w3id.org/edc/v0.0.1/ns/",
"dcat": "https://www.w3.org/ns/dcat/",
"odrl": "http://www.w3.org/ns/odrl/2/",
"dspace": "https://w3id.org/dspace/v0.8/"
}
}
}
},
"transfer": {
"init": {
"request": {
"@context": {
"odrl": "http://www.w3.org/ns/odrl/2/"
},
"assetId": "1f4a64f0-aba9-498a-917c-4936c24c50cd-49a06ad2-64b7-46c8-9f3b-a718c462ca23",
"connectorAddress": "https://materialpass.dev.demo.catena-x.net/BPNL000000000000/api/v1/dsp",
"contractId": "2:1f4a64f0-aba9-498a-917c-4936c24c50cd-49a06ad2-64b7-46c8-9f3b-a718c462ca23:b631f6a1-75b5-497b-ae3d-0413d6dd87fb",
"dataDestination": {
"properties": {
"type": "HttpProxy"
}
},
"managedResources": false,
"privateProperties": {
"receiverHttpEndpoint": "https://materialpass.dev.demo.catena-x.net/endpoint/d0bf9018-87ee-4b4a-b4a5-683b2701d90e"
},
"protocol": "dataspace-protocol-http",
"transferType": {
"contentType": "application/octet-stream",
"isFinite": true
}
},
"response": {
"@id": "ecdad987-afc4-4c49-aa88-9676b4599db0",
"@type": "edc:IdResponseDto",
"edc:createdAt": 1688393671434,
"@context": {
"dct": "https://purl.org/dc/terms/",
"tx": "https://w3id.org/tractusx/v0.0.1/ns/",
"edc": "https://w3id.org/edc/v0.0.1/ns/",
"dcat": "https://www.w3.org/ns/dcat/",
"odrl": "http://www.w3.org/ns/odrl/2/",
"dspace": "https://w3id.org/dspace/v0.8/"
}
}
},
"get": {
"response": {
"@id": "ecdad987-afc4-4c49-aa88-9676b4599db0",
"@type": "edc:TransferProcessDto",
"edc:state": "COMPLETED",
"edc:stateTimestamp": 1688393673622,
"edc:type": "CONSUMER",
"edc:callbackAddresses": [],
"edc:dataDestination": {
"edc:type": "HttpProxy"
},
"edc:dataRequest": {
"@id": "ecdad987-afc4-4c49-aa88-9676b4599db0",
"@type": "edc:DataRequestDto",
"edc:assetId": "1f4a64f0-aba9-498a-917c-4936c24c50cd-49a06ad2-64b7-46c8-9f3b-a718c462ca23",
"edc:contractId": "2:1f4a64f0-aba9-498a-917c-4936c24c50cd-49a06ad2-64b7-46c8-9f3b-a718c462ca23:b631f6a1-75b5-497b-ae3d-0413d6dd87fb"
},
"edc:receiverHttpEndpoint": "https://materialpass.dev.demo.catena-x.net/endpoint/d0bf9018-87ee-4b4a-b4a5-683b2701d90e",
"@context": {
"dct": "https://purl.org/dc/terms/",
"tx": "https://w3id.org/tractusx/v0.0.1/ns/",
"edc": "https://w3id.org/edc/v0.0.1/ns/",
"dcat": "https://www.w3.org/ns/dcat/",
"odrl": "http://www.w3.org/ns/odrl/2/",
"dspace": "https://w3id.org/dspace/v0.8/"
}
}
}
}
},
"semanticId": "general",
"aspect": {
"serialization": {
Expand Down
Loading

0 comments on commit c799856

Please sign in to comment.