Skip to content

Commit b91a131

Browse files
committed
[ADD]- access data examples
1 parent 55e0157 commit b91a131

19 files changed

Lines changed: 775 additions & 0 deletions

data/access.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"access_rules": [
3+
{
4+
"objectId": "e1cdc08f-580b-424c-a556-0701dff57bbb",
5+
"objectEntityClass": "ProductPassport",
6+
"identityId": "f7e1f51c-1dd6-40d1-8269-4055b99f6b2b",
7+
"identityProperties": {
8+
"readProperties": [
9+
"productName",
10+
"productShortName",
11+
"description",
12+
"category",
13+
"imageSrc",
14+
"productionDate",
15+
"bestBefore",
16+
"certificates",
17+
"productOwner",
18+
"ingredients",
19+
"productBatchSteps"
20+
],
21+
"writeProperties": [
22+
"description",
23+
"category",
24+
"certificates"
25+
],
26+
"shareReadProperties": [
27+
"productName",
28+
"certificates",
29+
"ingredients"
30+
],
31+
"shareWriteProperties": [
32+
"description"
33+
]
34+
}
35+
}
36+
]
37+
}

data/access_full.json

Lines changed: 172 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,172 @@
1+
{
2+
"access_rules": [
3+
{
4+
"objectId": "e1cdc08f-580b-424c-a556-0701dff57bbb",
5+
"objectEntityClass": "ProductPassport",
6+
"identityId": "f7e1f51c-1dd6-40d1-8269-4055b99f6b2b",
7+
"identityProperties": {
8+
"readProperties": [
9+
"productName",
10+
"productShortName",
11+
"description",
12+
"category",
13+
"imageSrc",
14+
"productionDate",
15+
"bestBefore",
16+
"certificates",
17+
"productOwner",
18+
"ingredients",
19+
"productBatchSteps"
20+
],
21+
"writeProperties": [],
22+
"shareReadProperties": [],
23+
"shareWriteProperties": []
24+
}
25+
},
26+
{
27+
"objectId": "068f31bb-feaf-4e64-a013-5774c52d3e74",
28+
"objectEntityClass": "Certificate",
29+
"path": "certificates",
30+
"identityId": "f7e1f51c-1dd6-40d1-8269-4055b99f6b2b",
31+
"identityProperties": {
32+
"readProperties": ["name", "link", "imageSrc"],
33+
"writeProperties": [],
34+
"shareReadProperties": [],
35+
"shareWriteProperties": []
36+
}
37+
},
38+
{
39+
"objectId": "63e5ce05-5607-4e83-9ace-6684c91f613b",
40+
"objectEntityClass": "Certificate",
41+
"path": "certificates",
42+
"identityId": "f7e1f51c-1dd6-40d1-8269-4055b99f6b2b",
43+
"identityProperties": {
44+
"readProperties": ["name", "description"],
45+
"writeProperties": [],
46+
"shareReadProperties": [],
47+
"shareWriteProperties": []
48+
}
49+
},
50+
{
51+
"objectId": "6ab28b06-c0f8-4c0a-9c8a-96e542fbaf86",
52+
"objectEntityClass": "Certificate",
53+
"path": "certificates",
54+
"identityId": "f7e1f51c-1dd6-40d1-8269-4055b99f6b2b",
55+
"identityProperties": {
56+
"readProperties": ["name", "link"],
57+
"writeProperties": ["description"],
58+
"shareReadProperties": [],
59+
"shareWriteProperties": []
60+
}
61+
},
62+
{
63+
"objectId": "ae57ed06-dd9a-47b9-bd8c-a15f379a2804",
64+
"objectEntityClass": "Ingredient",
65+
"path": "ingredients",
66+
"identityId": "f7e1f51c-1dd6-40d1-8269-4055b99f6b2b",
67+
"identityProperties": {
68+
"readProperties": ["name", "percentage"],
69+
"writeProperties": [],
70+
"shareReadProperties": [],
71+
"shareWriteProperties": []
72+
}
73+
},
74+
{
75+
"objectId": "ae57ed06-dd9a-47b9-bd8c-a15f379a2805",
76+
"objectEntityClass": "Ingredient",
77+
"path": "ingredients",
78+
"identityId": "f7e1f51c-1dd6-40d1-8269-4055b99f6b2b",
79+
"identityProperties": {
80+
"readProperties": ["name", "percentage"],
81+
"writeProperties": [],
82+
"shareReadProperties": [],
83+
"shareWriteProperties": []
84+
}
85+
},
86+
{
87+
"objectId": "6f1284af-1f6c-4c7e-82f3-b01240e233a9",
88+
"objectEntityClass": "ProductBatchStep",
89+
"path": "productBatchSteps",
90+
"identityId": "f7e1f51c-1dd6-40d1-8269-4055b99f6b2b",
91+
"identityProperties": {
92+
"readProperties": ["name", "description", "imageSrc"],
93+
"writeProperties": [],
94+
"shareReadProperties": [],
95+
"shareWriteProperties": []
96+
}
97+
},
98+
{
99+
"objectId": "5a4fefe6-0544-4762-828f-5ab5ee6e741e",
100+
"objectEntityClass": "ProductBatchStep",
101+
"path": "productBatchSteps",
102+
"identityId": "f7e1f51c-1dd6-40d1-8269-4055b99f6b2b",
103+
"identityProperties": {
104+
"readProperties": ["name", "description", "imageSrc"],
105+
"writeProperties": [],
106+
"shareReadProperties": [],
107+
"shareWriteProperties": []
108+
}
109+
},
110+
{
111+
"objectId": "8c684ff8-6da0-4763-9308-fd93ba986e60",
112+
"objectEntityClass": "ProductBatchStep",
113+
"path": "productBatchSteps",
114+
"identityId": "f7e1f51c-1dd6-40d1-8269-4055b99f6b2b",
115+
"identityProperties": {
116+
"readProperties": ["name", "description", "imageSrc"],
117+
"writeProperties": [],
118+
"shareReadProperties": [],
119+
"shareWriteProperties": []
120+
}
121+
},
122+
{
123+
"objectId": "10481447-4cc9-46b5-b3dc-5a86ef24a4d6",
124+
"objectEntityClass": "StepEntry",
125+
"path": "productBatchSteps[2].stepEntries",
126+
"identityId": "f7e1f51c-1dd6-40d1-8269-4055b99f6b2b",
127+
"identityProperties": {
128+
"readProperties": ["date", "description", "amount", "amountUnit"],
129+
"writeProperties": [],
130+
"shareReadProperties": [],
131+
"shareWriteProperties": []
132+
}
133+
},
134+
{
135+
"objectId": "10481447-4cc9-46b5-b3dc-5a86ef24a4d9",
136+
"objectEntityClass": "StepEntry",
137+
"path": "productBatchSteps[2].stepEntries",
138+
"identityId": "f7e1f51c-1dd6-40d1-8269-4055b99f6b2b",
139+
"identityProperties": {
140+
"readProperties": ["date", "description", "amount", "amountUnit"],
141+
"writeProperties": [],
142+
"shareReadProperties": [],
143+
"shareWriteProperties": []
144+
}
145+
},
146+
147+
{
148+
"objectId": "2479b933-3fdc-40ac-a059-c6d183cbdb3d",
149+
"objectEntityClass": "ProductOwner",
150+
"path": "productOwner",
151+
"identityId": "f7e1f51c-1dd6-40d1-8269-4055b99f6b2b",
152+
"identityProperties": {
153+
"readProperties": ["companyName", "imageSrc"],
154+
"writeProperties": [],
155+
"shareReadProperties": [],
156+
"shareWriteProperties": []
157+
}
158+
},
159+
{
160+
"objectId": "108ffdb8-657e-4ca7-9045-5dc07b24b8bf",
161+
"objectEntityClass": "Address",
162+
"path": "productOwner.address",
163+
"identityId": "f7e1f51c-1dd6-40d1-8269-4055b99f6b2b",
164+
"identityProperties": {
165+
"readProperties": ["name", "street", "zip", "city", "country"],
166+
"writeProperties": [],
167+
"shareReadProperties": [],
168+
"shareWriteProperties": []
169+
}
170+
}
171+
]
172+
}

data/json

Whitespace-only changes.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"objectId": "3f1d8b7e-9c2a-4f53-8e2d-1b7a5c6d9f02",
3+
"objectEntityClass": "Medicin",
4+
"identityId": "3accdce3-d385-45e8-83cc-fe6776c828e2",
5+
"objectProperties": {
6+
"readProperties": [
7+
"medicinId",
8+
"name",
9+
"form",
10+
"strength"
11+
],
12+
"writeProperties": [
13+
"manufacturer",
14+
"price",
15+
"form"
16+
],
17+
"shareReadProperties": [
18+
"manufacturer",
19+
"price",
20+
"form",
21+
"strength"
22+
],
23+
"shareWriteProperties": [
24+
"manufacturer",
25+
"price",
26+
"form"
27+
]
28+
}
29+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"objectId": "a7c4e2d1-5b8f-47e6-9a3c-0d4f2b1e8c73",
3+
"objectEntityClass": "Farm",
4+
"identityId": "3accdce3-d385-45e8-83cc-fe6776c828e2",
5+
"objectProperties": {
6+
"readProperties": [
7+
"farmId",
8+
"name",
9+
"owner",
10+
"location",
11+
"field"
12+
],
13+
"writeProperties": [
14+
"irrigationMethod",
15+
"lastSoilTest",
16+
"equipment"
17+
],
18+
"shareReadProperties": [
19+
"farmId",
20+
"name",
21+
"owner",
22+
"location",
23+
"field",
24+
"irrigationMethod",
25+
"lastSoilTest"
26+
],
27+
"shareWriteProperties": [
28+
"irrigationMethod",
29+
"lastSoilTest",
30+
"equipment"
31+
]
32+
}
33+
}
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
[
2+
{
3+
"objectId": "10481447-4cc9-46b5-b3dc-5a86ef24a4d6",
4+
"objectEntityClass": "ProductBatchStepEntry",
5+
"identityId": "3accdce3-d385-45e8-83cc-fe6776c828e2",
6+
"objectProperties": {
7+
"readProperties": [
8+
"productBatchStepId",
9+
"date",
10+
"previousStepEntryId",
11+
"nextStepEntryId",
12+
"amount",
13+
"amountUnit"
14+
],
15+
"writeProperties": [
16+
"imageSrc",
17+
"description",
18+
"energyConsumption",
19+
"co2Emission"
20+
],
21+
"shareReadProperties": [
22+
"productBatchStepId",
23+
"date",
24+
"amount",
25+
"amountUnit"
26+
],
27+
"shareWriteProperties": [
28+
"description",
29+
"imageSrc"
30+
]
31+
}
32+
},
33+
{
34+
"objectId": "10481447-4cc9-46b5-b3dc-5a86ef24a4d9",
35+
"objectEntityClass": "ProductBatchStepEntry",
36+
"identityId": "3accdce3-d385-45e8-83cc-fe6776c828e2",
37+
"objectProperties": {
38+
"readProperties": [
39+
"productBatchStepId",
40+
"date",
41+
"previousStepEntryId",
42+
"nextStepEntryId",
43+
"amount",
44+
"amountUnit"
45+
],
46+
"writeProperties": [
47+
"imageSrc",
48+
"description",
49+
"energyConsumption",
50+
"co2Emission"
51+
],
52+
"shareReadProperties": [
53+
"productBatchStepId",
54+
"date",
55+
"amount",
56+
"amountUnit"
57+
],
58+
"shareWriteProperties": [
59+
"description",
60+
"imageSrc"
61+
]
62+
}
63+
}
64+
]

filterDemo/api1/data.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"id": "3f1d8b7e-9c2a-4f53-8e2d-1b7a5c6d9f02",
3+
"medicinId": "MED001",
4+
"name": "Paracetamol",
5+
"form": "Tablet",
6+
"strength": "500 mg",
7+
"manufacturer": "Acme Pharmaceuticals",
8+
"price": 3.99,
9+
"expiryDate": "2026-05-31",
10+
"sideEffects": [
11+
"Nausea",
12+
"Rash",
13+
"Headache"
14+
]
15+
}

filterDemo/api1/filteredData.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"id": "3f1d8b7e-9c2a-4f53-8e2d-1b7a5c6d9f02",
3+
"medicinId": "MED001",
4+
"name": "Paracetamol",
5+
"form": "Tablet",
6+
"strength": "500 mg",
7+
"manufacturer": null,
8+
"price": null,
9+
"expiryDate": null,
10+
"sideEffects": []
11+
}

0 commit comments

Comments
 (0)