26
26
"header" : [],
27
27
"body" : {
28
28
"mode" : " raw" ,
29
- "raw" : " {\n \" @context\" : {},\n \" asset\" : {\n \" @type\" : \" Asset\" ,\n \" @id\" : \" {{ASSET_ID}}\" , \n \" properties\" : {\n \" description\" : \" Product EDC Demo Asset\"\n }\n },\n \" dataAddress\" : {\n \" @type\" : \" DataAddress\" ,\n \" type\" : \" HttpData\" ,\n \" baseUrl\" : \" https://jsonplaceholder.typicode.com/todos/1 \"\n }\n }" ,
29
+ "raw" : " {\n \" @context\" : {},\n \" asset\" : {\n \" @type\" : \" Asset\" ,\n \" @id\" : \" {{ASSET_ID}}\" , \n \" properties\" : {\n \" description\" : \" Product EDC Demo Asset\"\n }\n },\n \" dataAddress\" : {\n \" @type\" : \" DataAddress\" ,\n \" type\" : \" HttpData\" ,\n \" baseUrl\" : \" https://jsonplaceholder.typicode.com/todos\"\n }\n }" ,
30
30
"options" : {
31
31
"raw" : {
32
32
"language" : " json"
539
539
"method" : " GET" ,
540
540
"header" : [],
541
541
"url" : {
542
- "raw" : " {{CONSUMER_DATAMGMT_URL}}/transferprocesses/764db319-0952-4d20-8feb-d8bee8e77a54 " ,
542
+ "raw" : " {{CONSUMER_DATAMGMT_URL}}/transferprocesses/8e428b80-46a5-4325-87e5-592518f7666b " ,
543
543
"host" : [
544
544
" {{CONSUMER_DATAMGMT_URL}}"
545
545
],
546
546
"path" : [
547
547
" transferprocesses" ,
548
- " 764db319-0952-4d20-8feb-d8bee8e77a54 "
548
+ " 8e428b80-46a5-4325-87e5-592518f7666b "
549
549
]
550
550
}
551
551
},
597
597
}
598
598
},
599
599
"response" : []
600
+ },
601
+ {
602
+ "name" : " Initiate EDR Negotation" ,
603
+ "event" : [
604
+ {
605
+ "listen" : " test" ,
606
+ "script" : {
607
+ "exec" : [
608
+ " pm.test(\" Body matches string\" , function () {" ,
609
+ " var jsonData = pm.response.json();" ,
610
+ " pm.collectionVariables.set(\" NEGOTIATION_ID\" , jsonData.id);" ,
611
+ " " ,
612
+ " });"
613
+ ],
614
+ "type" : " text/javascript"
615
+ }
616
+ }
617
+ ],
618
+ "request" : {
619
+ "method" : " POST" ,
620
+ "header" : [],
621
+ "body" : {
622
+ "mode" : " raw" ,
623
+ "raw" : " {\n\t\" @context\" : {\n\t\t\" odrl\" : \" http://www.w3.org/ns/odrl/2/\"\n\t },\n\t\" @type\" : \" NegotiationInitiateRequestDto\" ,\n\t\" connectorAddress\" : \" {{PROVIDER_IDS_URL}}\" ,\n\t\" protocol\" : \" dataspace-protocol-http\" ,\n\t\" connectorId\" : \" {{PROVIDER_ID}}\" ,\n\t\" providerId\" : \" {{PROVIDER_ID}}\" ,\n\t\" offer\" : {\n\t\t\" offerId\" : \" 1:1:9f9375e3-ed28-449a-8a98-a340f4c20c26\" ,\n\t\t\" assetId\" : \" {{ASSET_ID}}\" ,\n\t\t\" policy\" : {\n\t\t\t\" @type\" : \" odrl:Set\" ,\n\t\t\t\" odrl:permission\" : {\n\t\t\t\t\" odrl:target\" : \" {{ASSET_ID}}\" ,\n\t\t\t\t\" odrl:action\" : {\n\t\t\t\t\t\" odrl:type\" : \" USE\"\n\t\t\t\t },\n\t\t\t\t\" odrl:constraint\" : {\n\t\t\t\t\t\" odrl:or\" : {\n\t\t\t\t\t\t\" odrl:leftOperand\" : \" BusinessPartnerNumber\" ,\n\t\t\t\t\t\t\" odrl:operator\" : \" EQ\" ,\n\t\t\t\t\t\t\" odrl:rightOperand\" : \" {{POLICY_BPN}}\"\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t },\n\t\t\t\" odrl:prohibition\" : [],\n\t\t\t\" odrl:obligation\" : [],\n\t\t\t\" odrl:target\" : \" {{ASSET_ID}}\"\n\t\t }\n\t }\n }" ,
624
+ "options" : {
625
+ "raw" : {
626
+ "language" : " json"
627
+ }
628
+ }
629
+ },
630
+ "url" : {
631
+ "raw" : " {{CONSUMER_ADAPTER_URL}}/edrs" ,
632
+ "host" : [
633
+ " {{CONSUMER_ADAPTER_URL}}"
634
+ ],
635
+ "path" : [
636
+ " edrs"
637
+ ]
638
+ }
639
+ },
640
+ "response" : []
641
+ },
642
+ {
643
+ "name" : " Query EDRs Cached" ,
644
+ "event" : [
645
+ {
646
+ "listen" : " test" ,
647
+ "script" : {
648
+ "exec" : [
649
+ " pm.test(\" Body matches string\" , function () {" ,
650
+ " var jsonData = pm.response.json();" ,
651
+ " pm.collectionVariables.set(\" NEGOTIATION_ID\" , jsonData.id);" ,
652
+ " " ,
653
+ " });"
654
+ ],
655
+ "type" : " text/javascript"
656
+ }
657
+ }
658
+ ],
659
+ "protocolProfileBehavior" : {
660
+ "disableBodyPruning" : true
661
+ },
662
+ "request" : {
663
+ "method" : " GET" ,
664
+ "header" : [],
665
+ "body" : {
666
+ "mode" : " raw" ,
667
+ "raw" : " " ,
668
+ "options" : {
669
+ "raw" : {
670
+ "language" : " json"
671
+ }
672
+ }
673
+ },
674
+ "url" : {
675
+ "raw" : " {{CONSUMER_ADAPTER_URL}}/edrs?assetId={{ASSET_ID}}" ,
676
+ "host" : [
677
+ " {{CONSUMER_ADAPTER_URL}}"
678
+ ],
679
+ "path" : [
680
+ " edrs"
681
+ ],
682
+ "query" : [
683
+ {
684
+ "key" : " assetId" ,
685
+ "value" : " {{ASSET_ID}}"
686
+ }
687
+ ]
688
+ }
689
+ },
690
+ "response" : []
691
+ },
692
+ {
693
+ "name" : " Get EDR by tp ID" ,
694
+ "event" : [
695
+ {
696
+ "listen" : " test" ,
697
+ "script" : {
698
+ "exec" : [
699
+ " pm.test(\" Body matches string\" , function () {" ,
700
+ " var jsonData = pm.response.json();" ,
701
+ " pm.collectionVariables.set(\" NEGOTIATION_ID\" , jsonData.id);" ,
702
+ " " ,
703
+ " });"
704
+ ],
705
+ "type" : " text/javascript"
706
+ }
707
+ }
708
+ ],
709
+ "protocolProfileBehavior" : {
710
+ "disableBodyPruning" : true
711
+ },
712
+ "request" : {
713
+ "method" : " GET" ,
714
+ "header" : [],
715
+ "body" : {
716
+ "mode" : " raw" ,
717
+ "raw" : " " ,
718
+ "options" : {
719
+ "raw" : {
720
+ "language" : " json"
721
+ }
722
+ }
723
+ },
724
+ "url" : {
725
+ "raw" : " {{CONSUMER_ADAPTER_URL}}/edrs/4b383155-9147-4912-819e-6172b4a3eb02" ,
726
+ "host" : [
727
+ " {{CONSUMER_ADAPTER_URL}}"
728
+ ],
729
+ "path" : [
730
+ " edrs" ,
731
+ " 4b383155-9147-4912-819e-6172b4a3eb02"
732
+ ]
733
+ }
734
+ },
735
+ "response" : []
736
+ },
737
+ {
738
+ "name" : " Get Asset Data with proxy" ,
739
+ "event" : [
740
+ {
741
+ "listen" : " test" ,
742
+ "script" : {
743
+ "exec" : [
744
+ " pm.test(\" Body matches string\" , function () {" ,
745
+ " var jsonData = pm.response.json();" ,
746
+ " pm.collectionVariables.set(\" NEGOTIATION_ID\" , jsonData.id);" ,
747
+ " " ,
748
+ " });"
749
+ ],
750
+ "type" : " text/javascript"
751
+ }
752
+ }
753
+ ],
754
+ "request" : {
755
+ "method" : " POST" ,
756
+ "header" : [],
757
+ "body" : {
758
+ "mode" : " raw" ,
759
+ "raw" : " {\n \" assetId\" : \" {{ASSET_ID}}\" ,\n \" endpointUrl\" : \" http://plato-dataplane:8080/api/gateway/aas/1\"\n }" ,
760
+ "options" : {
761
+ "raw" : {
762
+ "language" : " json"
763
+ }
764
+ }
765
+ },
766
+ "url" : {
767
+ "raw" : " http://localhost:8186/proxy/aas/request" ,
768
+ "protocol" : " http" ,
769
+ "host" : [
770
+ " localhost"
771
+ ],
772
+ "port" : " 8186" ,
773
+ "path" : [
774
+ " proxy" ,
775
+ " aas" ,
776
+ " request"
777
+ ]
778
+ }
779
+ },
780
+ "response" : []
600
781
}
601
782
],
602
783
"auth" : {
715
896
"key" : " EDC_NAMESPACE" ,
716
897
"value" : " https://w3id.org/edc/v0.0.1/ns/" ,
717
898
"type" : " string"
899
+ },
900
+ {
901
+ "key" : " CONSUMER_ADAPTER_URL" ,
902
+ "value" : " http://localhost:31364/management/adapter" ,
903
+ "type" : " string"
718
904
}
719
905
]
720
906
}
0 commit comments