Skip to content

Commit 6dc757d

Browse files
committed
Update Requests to use pick and format
1 parent e7e478c commit 6dc757d

File tree

2 files changed

+20
-10
lines changed

2 files changed

+20
-10
lines changed

README.ja.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,8 @@ IoT デバイスをプロビジョニングします。
260260
#### 1️⃣ リクエスト:
261261
262262
```console
263-
curl -L -X POST 'http://localhost:1026/ngsi-ld/v1/subscriptions/' \
263+
curl -L -X POST \
264+
'http://localhost:1026/ngsi-ld/v1/subscriptions/' \
264265
-H 'Content-Type: application/ld+json' \
265266
-H 'NGSILD-Tenant: openiot' \
266267
--data-raw '{
@@ -356,7 +357,8 @@ function broadcastEvents(req, item, types) {
356357
NGSI-LD 正規化フォーマット (normalized format) を使用してサブスクライバーに通知するように変更されました。
357358

358359
```console
359-
curl -L -X POST 'http://localhost:1026/ngsi-ld/v1/subscriptions/' \
360+
curl -L -X POST \
361+
'http://localhost:1026/ngsi-ld/v1/subscriptions/' \
360362
-H 'Content-Type: application/ld+json' \
361363
-H 'NGSILD-Tenant: openiot' \
362364
--data-raw '{
@@ -419,7 +421,8 @@ Broker は、レガシー・システムに下位互換性のある **NGSI-v2**
419421
正規化フォーマットを使用してサブスクライバーに通知するように変更されました。
420422

421423
```console
422-
curl -L -X POST 'http://localhost:1026/ngsi-ld/v1/subscriptions/' \
424+
curl -L -X POST \
425+
'http://localhost:1026/ngsi-ld/v1/subscriptions/' \
423426
-H 'Content-Type: application/ld+json' \
424427
-H 'NGSILD-Tenant: openiot' \
425428
--data-raw '{
@@ -506,7 +509,8 @@ curl -L -X POST 'http://localhost:1026/ngsi-ld/v1/subscriptions/' \
506509
#### 4️⃣ リクエスト:
507510

508511
```console
509-
curl -L -X POST 'http://localhost:1026/ngsi-ld/v1/subscriptions/' \
512+
curl -L -X POST \
513+
'http://localhost:1026/ngsi-ld/v1/subscriptions/' \
510514
-H 'Content-Type: application/ld+json' \
511515
-H 'NGSILD-Tenant: openiot' \
512516
--data-raw '{
@@ -581,7 +585,8 @@ HTTP 動詞にマップされます。
581585
#### 4️⃣ リクエスト:
582586

583587
```console
584-
curl -L -X POST 'http://localhost:1026/ngsi-ld/v1/subscriptions/' \
588+
curl -L -X POST \
589+
'http://localhost:1026/ngsi-ld/v1/subscriptions/' \
585590
-H 'Content-Type: application/ld+json' \
586591
--data-raw '{
587592
"description": "Notify me of all product price changes",

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,8 @@ below:
241241
#### 1️⃣ Request:
242242
243243
```console
244-
curl -L -X POST 'http://localhost:1026/ngsi-ld/v1/subscriptions/' \
244+
curl -L -X POST \
245+
'http://localhost:1026/ngsi-ld/v1/subscriptions/' \
245246
-H 'Content-Type: application/ld+json' \
246247
-H 'NGSILD-Tenant: openiot' \
247248
--data-raw '{
@@ -335,7 +336,8 @@ This second subscription will fire when the `filling` level is between 0.6 and 0
335336
altered to inform the subscriber using NGSI-LD normalized format.
336337

337338
```console
338-
curl -L -X POST 'http://localhost:1026/ngsi-ld/v1/subscriptions/' \
339+
curl -L -X POST \
340+
'http://localhost:1026/ngsi-ld/v1/subscriptions/' \
339341
-H 'Content-Type: application/ld+json' \
340342
-H 'NGSILD-Tenant: openiot' \
341343
--data-raw '{
@@ -398,7 +400,8 @@ This third subscription will fire when the `filling` level is below 0.4. The `fo
398400
inform the subscriber using NGSI-v2 normalized format.
399401

400402
```console
401-
curl -L -X POST 'http://localhost:1026/ngsi-ld/v1/subscriptions/' \
403+
curl -L -X POST \
404+
'http://localhost:1026/ngsi-ld/v1/subscriptions/' \
402405
-H 'Content-Type: application/ld+json' \
403406
-H 'NGSILD-Tenant: openiot' \
404407
--data-raw '{
@@ -480,7 +483,8 @@ been altered to use the MQTT protocol
480483
#### 4️⃣ Request:
481484

482485
```console
483-
curl -L -X POST 'http://localhost:1026/ngsi-ld/v1/subscriptions/' \
486+
curl -L -X POST \
487+
'http://localhost:1026/ngsi-ld/v1/subscriptions/' \
484488
-H 'Content-Type: application/ld+json' \
485489
-H 'NGSILD-Tenant: openiot' \
486490
--data-raw '{
@@ -550,7 +554,8 @@ The notification section of the body states that a POST request containing all a
550554
#### 4️⃣ Request:
551555

552556
```console
553-
curl -L -X POST 'http://localhost:1026/ngsi-ld/v1/subscriptions/' \
557+
curl -L -X POST \
558+
'http://localhost:1026/ngsi-ld/v1/subscriptions/' \
554559
-H 'Content-Type: application/ld+json' \
555560
--data-raw '{
556561
"description": "Notify me of all product price changes",

0 commit comments

Comments
 (0)