-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest-docker-dev.sh
More file actions
76 lines (72 loc) · 2.11 KB
/
Copy pathtest-docker-dev.sh
File metadata and controls
76 lines (72 loc) · 2.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#!/usr/bin/env bash
# get the FC catalog
curl --location 'http://localhost:39195/api/catalog/v1alpha/catalog/query' \
--header 'Content-Type: application/json' \
--header 'x-api-key: managementApiKeyFederatedCatalog' \
--data-raw '{
"@context": {
"@vocab": "https://w3id.org/edc/v0.0.1/ns/"
},
"@type": "QuerySpec"
}'
# add one asset to base provider
curl --location 'http://localhost:19193/management/v3/assets' \
--header 'Content-Type: application/json' \
--header 'x-api-key: managementApiKeyProviderBase' \
--data-raw '{
"@context": {
"dcat": "http://www.w3.org/ns/dcat#",
"dct": "http://purl.org/dc/terms/",
"cbm": "https://w3id.org/cbm/v0.0.1/ns/",
"schema": "https://schema.org/",
"@vocab": "https://w3id.org/edc/v0.0.1/ns/"
},
"@id": "assetId",
"properties": {
"contenttype": "application/json",
"dct:title": "test name",
"dct:description": "test description",
"dct:issued": "2025-10-22T12:04:33+00:00",
"dct:modified": "2025-10-22T13:04:33+00:00",
"dct:accessRights": "https://opendatacommons.org/licenses/odbl/1.0/",
"dct:type": "Dataset"
},
"dataAddress": [{
"type": "HttpData",
"name": "Test asset distribution",
"baseUrl": "https://jsonplaceholder.typicode.com/users",
"proxyPath": "true"
}]
}
'
curl --location 'http://localhost:19193/management/v3/policydefinitions' \
--header 'Content-Type: application/json' \
--header 'x-api-key: managementApiKeyProviderBase' \
--data-raw '{
"@context": {
"@vocab": "https://w3id.org/edc/v0.0.1/ns/",
"odrl": "http://www.w3.org/ns/odrl/2/"
},
"@id": "aPolicy",
"policy": {
"@context": "http://www.w3.org/ns/odrl.jsonld",
"@type": "Set",
"permission": [],
"prohibition": [],
"obligation": []
}
}
'
curl --location 'http://localhost:19193/management/v3/contractdefinitions' \
--header 'Content-Type: application/json' \
--header 'x-api-key: managementApiKeyProviderBase' \
--data-raw '{
"@context": {
"@vocab": "https://w3id.org/edc/v0.0.1/ns/"
},
"@id": "1",
"accessPolicyId": "aPolicy",
"contractPolicyId": "aPolicy",
"assetsSelector": []
}
'