Skip to content

Commit f5d27d3

Browse files
Update API endpoints and add data parsing with jq
1 parent f75e028 commit f5d27d3

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

docs/tutorials/e2e/boost/provideData.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ curl --location 'http://localhost/bob/management/v2/assets' \
3030
"type": "HttpData",
3131
"baseUrl": "https://jsonplaceholder.typicode.com/todos/3"
3232
}
33-
}'
33+
}' | jq
3434
```
3535

3636
## Request catalog
@@ -51,7 +51,7 @@ curl --location 'http://localhost/alice/management/v2/catalog/request' \
5151
"offset": 0,
5252
"limit": 100
5353
}
54-
}'
54+
}' | jq
5555
```
5656

5757
## Create first access policy
@@ -73,11 +73,11 @@ curl --location 'http://localhost/bob/management/v2/policydefinitions' \
7373
"odrl": "http://www.w3.org/ns/odrl/2/"
7474
},
7575
"@type": "PolicyDefinitionRequestDto",
76-
"@id": "31",
76+
"@id": "3-1",
7777
"policy": {
7878
"@type": "Policy"
7979
}
80-
}'
80+
}' | jq
8181
```
8282

8383
## Request catalog - second try
@@ -98,7 +98,7 @@ curl --location 'http://localhost/alice/management/v2/catalog/request' \
9898
"offset": 0,
9999
"limit": 100
100100
}
101-
}'
101+
}' | jq
102102
```
103103

104104
## Create first contract definition
@@ -133,11 +133,11 @@ curl --location 'http://localhost/bob/management/v2/policydefinitions' \
133133
"odrl": "http://www.w3.org/ns/odrl/2/"
134134
},
135135
"@type": "PolicyDefinitionRequestDto",
136-
"@id": "32",
136+
"@id": "3-2",
137137
"policy": {
138138
"@type": "Policy"
139139
}
140-
}'
140+
}' | jq
141141
```
142142

143143
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' \
150150
"@context": {},
151151
"@id": "3",
152152
"@type": "ContractDefinition",
153-
"accessPolicyId": "31",
154-
"contractPolicyId": "32",
153+
"accessPolicyId": "3-1",
154+
"contractPolicyId": "3-2",
155155
"assetsSelector": {
156156
"@type": "CriterionDto",
157157
"operandLeft": "https://w3id.org/edc/v0.0.1/ns/id",
158158
"operator": "=",
159159
"operandRight": "3"
160160
}
161-
}'
161+
}' | jq
162162
```
163163

164164
## Request catalog - third try
@@ -178,7 +178,7 @@ curl --location 'http://localhost/alice/management/v2/catalog/request' \
178178
"offset": 0,
179179
"limit": 100
180180
}
181-
}'
181+
}' | jq
182182
```
183183

184184
:::info

0 commit comments

Comments
 (0)