Skip to content

Commit 99fa171

Browse files
author
ELebedkin
committed
chore: added windows commands
1 parent ca0e4c8 commit 99fa171

File tree

1 file changed

+110
-1
lines changed

1 file changed

+110
-1
lines changed

dpp-tutorial/irs-drill-down.md

Lines changed: 110 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,24 +148,62 @@ The BOMAsBuilt relationships, you stored temporarily in your notepad editor from
148148
Open a new terminal and run the following command to add your data into the data service:
149149
> POST /<<BOMAsBuiltID>BOMAsBuiltID>
150150
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+
151167
```bash
152168
curl --location '<DATA_SERVICE_URL>/<BOMAsBuiltID>' \
153169
--header 'Content-Type: application/json' \
154170
--data "@<YOUR_JSON_FILE>.json"
155171
```
156172

173+
</details>
174+
175+
157176
> [!TIP]
158177
> The placeholder <YOUR_JSON_FILE> is the json file which was stored in [step 2](#2-lookup-bomasbuilt-relationships-of-the-component)
159178
160179

161180
Verify your data is registerd in the service
162181

163182
> 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+
164199
```bash
165200
curl --location '<DATA_SERVICE_URL>/<BOMAsBuiltID>' \
166201
--header 'Content-Type: application/json' \
167202
```
168203

204+
</details>
205+
206+
169207
## 4° Lookup SerialPart Item of the Component
170208

171209

@@ -222,23 +260,58 @@ The serial part data, you stored temporarily in your notepad editor from [step 4
222260
Open a new terminal and run the following command to add your data into the data service:
223261
> POST /<SerialPartID<SerialPartID>>
224262

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+
225278
```bash
226279
curl --location '<DATA_SERVICE_URL>/<SerialPartID>' \
227280
--header 'Content-Type: application/json' \
228281
--data "@<YOUR_JSON_FILE>.json"
229282
```
230283

284+
</details>
285+
286+
231287
> [!TIP]
232288
> The placeholder <YOUR_JSON_FILE> is the json file which was stored in [step 4](#4-lookup-serialpart-item-of-the-component)
233289

234290

235291
Verify your data is registerd in the service
236292

237293
> 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+
238309
```bash
239310
curl --location '<DATA_SERVICE_URL>/<SerialPartID>' \
240311
--header 'Content-Type: application/json' \
241312
```
313+
</details>
314+
242315

243316
## 6° Attach BOMAsBuilt to Existing Digital Twin
244317

@@ -257,11 +330,29 @@ Base64 Encoded: dXJuOnV1aWQ6M2Y4OWQwZDQtZTExYy1mODNiLTE2ZmQtNzMzYzYzZDRlMTIx
257330

258331
> GET /shell-descriptors/<DIGITAL_TWIN_ID_BASE64_ENCODED>
259332

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+
260350
```bash
261351
curl --location --request GET '<DIGITAL_TWIN_REGISTRY_URL>/shell-descriptors/<DIGITAL_TWIN_ID_BASE64_ENCODED>' \
262352
--header 'Content-Type: application/json' \
263353
--header 'Edc-Bpn: BPNL00000003CSGV'
264354
```
355+
</details>
265356

266357
Example JSON response:
267358
```json
@@ -345,9 +436,27 @@ Now, you can update the modified digital twin object using the following command
345436
346437
> PUT /shell-descriptors/<DIGITAL_TWIN_ID_BASE64_ENCODED>
347438
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+
348455
```bash
349456
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'
351459
```
460+
</details>
352461
353462
Congratulations, you have successfully attached BOMAsBuilt relationships and serial part to the existing Digital Twin object.

0 commit comments

Comments
 (0)