@@ -30,7 +30,7 @@ curl --location 'http://localhost/bob/management/v2/assets' \
30
30
"type": "HttpData",
31
31
"baseUrl": "https://jsonplaceholder.typicode.com/todos/3"
32
32
}
33
- }'
33
+ }' | jq
34
34
```
35
35
36
36
## Request catalog
@@ -51,7 +51,7 @@ curl --location 'http://localhost/alice/management/v2/catalog/request' \
51
51
"offset": 0,
52
52
"limit": 100
53
53
}
54
- }'
54
+ }' | jq
55
55
```
56
56
57
57
## Create first access policy
@@ -73,11 +73,11 @@ curl --location 'http://localhost/bob/management/v2/policydefinitions' \
73
73
"odrl": "http://www.w3.org/ns/odrl/2/"
74
74
},
75
75
"@type": "PolicyDefinitionRequestDto",
76
- "@id": "31 ",
76
+ "@id": "3-1 ",
77
77
"policy": {
78
78
"@type": "Policy"
79
79
}
80
- }'
80
+ }' | jq
81
81
```
82
82
83
83
## Request catalog - second try
@@ -98,7 +98,7 @@ curl --location 'http://localhost/alice/management/v2/catalog/request' \
98
98
"offset": 0,
99
99
"limit": 100
100
100
}
101
- }'
101
+ }' | jq
102
102
```
103
103
104
104
## Create first contract definition
@@ -133,11 +133,11 @@ curl --location 'http://localhost/bob/management/v2/policydefinitions' \
133
133
"odrl": "http://www.w3.org/ns/odrl/2/"
134
134
},
135
135
"@type": "PolicyDefinitionRequestDto",
136
- "@id": "32 ",
136
+ "@id": "3-2 ",
137
137
"policy": {
138
138
"@type": "Policy"
139
139
}
140
- }'
140
+ }' | jq
141
141
```
142
142
143
143
Action (Bob): Create a contract definition including the asset and the policies you have created. For this, use the following ` curl ` command:
@@ -150,15 +150,15 @@ curl --location 'http://localhost/bob/management/v2/contractdefinitions' \
150
150
"@context": {},
151
151
"@id": "3",
152
152
"@type": "ContractDefinition",
153
- "accessPolicyId": "31 ",
154
- "contractPolicyId": "32 ",
153
+ "accessPolicyId": "3-1 ",
154
+ "contractPolicyId": "3-2 ",
155
155
"assetsSelector": {
156
156
"@type": "CriterionDto",
157
157
"operandLeft": "https://w3id.org/edc/v0.0.1/ns/id",
158
158
"operator": "=",
159
159
"operandRight": "3"
160
160
}
161
- }'
161
+ }' | jq
162
162
```
163
163
164
164
## Request catalog - third try
@@ -178,7 +178,7 @@ curl --location 'http://localhost/alice/management/v2/catalog/request' \
178
178
"offset": 0,
179
179
"limit": 100
180
180
}
181
- }'
181
+ }' | jq
182
182
```
183
183
184
184
::: info
0 commit comments