@@ -148,24 +148,62 @@ The BOMAsBuilt relationships, you stored temporarily in your notepad editor from
148
148
Open a new terminal and run the following command to add your data into the data service:
149
149
> POST /<<BOMAsBuiltID >BOMAsBuiltID>
150
150
151
+ * Windows*
152
+ <details >
153
+ <summary >Click to see the Windows command</summary >
154
+
155
+ ``` bash
156
+ curl.exe -v -X POST " <DATA_SERVICE_URL>/<BOMAsBuiltID>" `
157
+ -H " Content-Type: application/json" `
158
+ --data-binary " @<YOUR_JSON_FILE>.json"
159
+ ```
160
+
161
+ </details >
162
+
163
+ * Mac & Linux*
164
+ <details >
165
+ <summary >Click here to see the Mac & Linux command</summary >
166
+
151
167
``` bash
152
168
curl --location ' <DATA_SERVICE_URL>/<BOMAsBuiltID>' \
153
169
--header ' Content-Type: application/json' \
154
170
--data " @<YOUR_JSON_FILE>.json"
155
171
```
156
172
173
+ </details >
174
+
175
+
157
176
> [ !TIP]
158
177
> The placeholder <YOUR_JSON_FILE> is the json file which was stored in [ step 2] ( #2-lookup-bomasbuilt-relationships-of-the-component )
159
178
160
179
161
180
Verify your data is registerd in the service
162
181
163
182
> GET /<<BOMAsBuiltID >BOMAsBuiltID>
183
+
184
+ * Windows*
185
+ <details >
186
+ <summary >Click to see the Windows command</summary >
187
+
188
+ ``` bash
189
+ curl.exe -v -X GET " <Data_SERVICE_URL>/urn:uuid:<digitalTwinSubmodelId>" `
190
+ -H " Content-Type: application/json"
191
+ ` ` `
192
+
193
+ < /details>
194
+
195
+ * Mac & Linux*
196
+ < details>
197
+ < summary> Click here to see the Mac & Linux command< /summary>
198
+
164
199
` ` ` bash
165
200
curl --location ' <DATA_SERVICE_URL>/<BOMAsBuiltID>' \
166
201
--header ' Content-Type: application/json' \
167
202
` ` `
168
203
204
+ < /details>
205
+
206
+
169
207
# # 4° Lookup SerialPart Item of the Component
170
208
171
209
@@ -222,23 +260,58 @@ The serial part data, you stored temporarily in your notepad editor from [step 4
222
260
Open a new terminal and run the following command to add your data into the data service:
223
261
> POST /< SerialPartID< SerialPartID>>
224
262
263
+ * Windows*
264
+ < details>
265
+ < summary> Click to see the Windows command< /summary>
266
+
267
+ ` ` ` bash
268
+ curl.exe -v -X POST " <Data_SERVICE_URL>/<SerialPartID>" `
269
+ -H " Content-Type: application/json" `
270
+ --data-binary " @<YOUR_JSON_FILE>.json"
271
+ ` ` `
272
+ < /details>
273
+
274
+ * Mac & Linux*
275
+ < details>
276
+ < summary> Click here to see the Mac & Linux command< /summary>
277
+
225
278
` ` ` bash
226
279
curl --location ' <DATA_SERVICE_URL>/<SerialPartID>' \
227
280
--header ' Content-Type: application/json' \
228
281
--data " @<YOUR_JSON_FILE>.json"
229
282
` ` `
230
283
284
+ < /details>
285
+
286
+
231
287
> [! TIP]
232
288
> The placeholder < YOUR_JSON_FILE> is the json file which was stored in [step 4](# 4-lookup-serialpart-item-of-the-component)
233
289
234
290
235
291
Verify your data is registerd in the service
236
292
237
293
> GET /< SerialPartID< SerialPartID>>
294
+
295
+ * Windows*
296
+ < details>
297
+ < summary> Click to see the Windows command< /summary>
298
+
299
+ ` ` ` bash
300
+ curl.exe -v -X POST " <Data_SERVICE_URL>/<SerialPartID>" `
301
+ -H " Content-Type: application/json" `
302
+ ` ` `
303
+ < /details>
304
+
305
+ * Mac & Linux*
306
+ < details>
307
+ < summary> Click here to see the Mac & Linux command< /summary>
308
+
238
309
` ` ` bash
239
310
curl --location ' <DATA_SERVICE_URL>/<SerialPartID>' \
240
311
--header ' Content-Type: application/json' \
241
312
` ` `
313
+ < /details>
314
+
242
315
243
316
# # 6° Attach BOMAsBuilt to Existing Digital Twin
244
317
@@ -257,11 +330,29 @@ Base64 Encoded: dXJuOnV1aWQ6M2Y4OWQwZDQtZTExYy1mODNiLTE2ZmQtNzMzYzYzZDRlMTIx
257
330
258
331
> GET /shell-descriptors/< DIGITAL_TWIN_ID_BASE64_ENCODED>
259
332
333
+
334
+ * Windows*
335
+ < details>
336
+ < summary> Click to see the Windows command< /summary>
337
+
338
+ ` ` ` bash
339
+ curl.exe -X GET " <DIGITAL_TWIN_REGISTRY_URL>/shell-descriptors/<DIGITAL_TWIN_ID_BASE64_ENCODED>" `
340
+ -H " Content-Type: application/json" `
341
+ -H " Edc-Bpn: BPNL00000003CSGV"
342
+ ` ` `
343
+
344
+ < /details>
345
+
346
+ * Mac & Linux*
347
+ < details>
348
+ < summary> Click here to see the Mac & Linux command< /summary>
349
+
260
350
` ` ` bash
261
351
curl --location --request GET ' <DIGITAL_TWIN_REGISTRY_URL>/shell-descriptors/<DIGITAL_TWIN_ID_BASE64_ENCODED>' \
262
352
--header ' Content-Type: application/json' \
263
353
--header ' Edc-Bpn: BPNL00000003CSGV'
264
354
` ` `
355
+ < /details>
265
356
266
357
Example JSON response:
267
358
` ` ` json
@@ -345,9 +436,27 @@ Now, you can update the modified digital twin object using the following command
345
436
346
437
> PUT /shell-descriptors/< DIGITAL_TWIN_ID_BASE64_ENCODED>
347
438
439
+ * Windows*
440
+ < details>
441
+ < summary> Click to see the Windows command< /summary>
442
+
443
+ ` ` ` bash
444
+ curl.exe -v -X PUT " <DIGITAL_TWIN_REGISTRY_URL>/shell-descriptors/<DIGITAL_TWIN_ID_BASE64_ENCODED>" `
445
+ -H " Content-Type: application/json" `
446
+ --data-binary ' @resources/<YOUR_DT_JSON>.json'
447
+ ` ` `
448
+
449
+ < /details>
450
+
451
+ * Mac & Linux*
452
+ < details>
453
+ < summary> Click here to see the Mac & Linux command< /summary>
454
+
348
455
` ` ` bash
349
456
curl --location --request PUT ' <DIGITAL_TWIN_REGISTRY_URL>/shell-descriptors/<DIGITAL_TWIN_ID_BASE64_ENCODED>' \
350
- --header ' Content-Type: application/json' --data ' @resources/<YOUR_DT_JSON>.json'
457
+ --header ' Content-Type: application/json' \
458
+ --data ' @resources/<YOUR_DT_JSON>.json'
351
459
` ` `
460
+ < /details>
352
461
353
462
Congratulations, you have successfully attached BOMAsBuilt relationships and serial part to the existing Digital Twin object.
0 commit comments