Skip to content

Commit eeb2d20

Browse files
committed
Update Requests to use pick and format
1 parent aec8665 commit eeb2d20

File tree

2 files changed

+26
-16
lines changed

2 files changed

+26
-16
lines changed

README.ja.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,8 @@ _property-of-property_ が含まれているため、**CrateDB**データベー
368368
#### 1️⃣ リクエスト:
369369

370370
```console
371-
curl -L -X POST 'http://localhost:1026/ngsi-ld/v1/subscriptions/' \
371+
curl -L -X POST \
372+
'http://localhost:1026/ngsi-ld/v1/subscriptions/' \
372373
-H 'Content-Type: application/ld+json' \
373374
-H 'NGSILD-Tenant: openiot' \
374375
--data-raw '{
@@ -412,7 +413,8 @@ curl -L -X POST 'http://localhost:1026/ngsi-ld/v1/subscriptions/' \
412413
#### 2️⃣ リクエスト:
413414

414415
```console
415-
curl -L -X POST 'http://localhost:1026/ngsi-ld/v1/subscriptions/' \
416+
curl -L -X POST \
417+
'http://localhost:1026/ngsi-ld/v1/subscriptions/' \
416418
-H 'Content-Type: application/ld+json' \
417419
-H 'NGSILD-Tenant: openiot' \
418420
--data-raw '{
@@ -536,10 +538,11 @@ API のドキュメントは[こちら](https://app.swaggerhub.com/apis/smartsdk
536538
#### 4️⃣ リクエスト:
537539

538540
```console
539-
curl -X GET \
540-
'http://localhost:8668/v2/entities/urn:ngsi-ld:Device:filling001/attrs/filling?limit=3' \
541+
curl -G -X GET \
542+
'http://localhost:8668/v2/entities/urn:ngsi-ld:Device:filling001/attrs/filling' \
541543
-H 'Accept: application/json' \
542-
-H 'Fiware-Service: openiot'
544+
-H 'Fiware-Service: openiot' \
545+
-d 'limit=3'
543546
```
544547

545548
#### レスポンス:
@@ -564,10 +567,12 @@ curl -X GET \
564567
#### 5️⃣ リクエスト:
565568

566569
```console
567-
curl -X GET \
568-
'http://localhost:8668/v2/entities/urn:ngsi-ld:Device:filling001/attrs/filling?offset=3&limit=3' \
570+
curl -G -X GET \
571+
'http://localhost:8668/v2/entities/urn:ngsi-ld:Device:filling001/attrs/filling' \
569572
-H 'Accept: application/json' \
570-
-H 'Fiware-Service: openiot'
573+
-H 'Fiware-Service: openiot' \
574+
-d 'offset=3' \
575+
-d 'limit=3'
571576
```
572577

573578
#### レスポンス:

README.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,8 @@ the record within the **CrateDB** itself.
367367
#### 1️⃣ Request:
368368

369369
```console
370-
curl -L -X POST 'http://localhost:1026/ngsi-ld/v1/subscriptions/' \
370+
curl -L -X POST \
371+
'http://localhost:1026/ngsi-ld/v1/subscriptions/' \
371372
-H 'Content-Type: application/ld+json' \
372373
-H 'NGSILD-Tenant: openiot' \
373374
--data-raw '{
@@ -411,7 +412,8 @@ including the `throttling` attribute in the request body.
411412
#### 2️⃣ Request:
412413

413414
```console
414-
curl -L -X POST 'http://localhost:1026/ngsi-ld/v1/subscriptions/' \
415+
curl -L -X POST \
416+
'http://localhost:1026/ngsi-ld/v1/subscriptions/' \
415417
-H 'Content-Type: application/ld+json' \
416418
-H 'NGSILD-Tenant: openiot' \
417419
--data-raw '{
@@ -529,10 +531,11 @@ in no data being returned.
529531
#### 4️⃣ Request:
530532

531533
```console
532-
curl -X GET \
533-
'http://localhost:8668/v2/entities/urn:ngsi-ld:Device:filling001/attrs/filling?limit=3' \
534+
curl -G -X GET \
535+
'http://localhost:8668/v2/entities/urn:ngsi-ld:Device:filling001/attrs/filling?' \
534536
-H 'Accept: application/json' \
535-
-H 'Fiware-Service: openiot'
537+
-H 'Fiware-Service: openiot' \
538+
-d 'limit=3'
536539
```
537540

538541
#### Response:
@@ -555,10 +558,12 @@ This example shows the fourth, fifth and sixth sampled `filling` values of `urn:
555558
#### 5️⃣ Request:
556559

557560
```console
558-
curl -X GET \
559-
'http://localhost:8668/v2/entities/urn:ngsi-ld:Device:filling001/attrs/filling?offset=3&limit=3' \
561+
curl -G -X GET \
562+
'http://localhost:8668/v2/entities/urn:ngsi-ld:Device:filling001/attrs/filling' \
560563
-H 'Accept: application/json' \
561-
-H 'Fiware-Service: openiot'
564+
-H 'Fiware-Service: openiot' \
565+
-d 'offset=3' \
566+
-d 'limit=3'
562567
```
563568

564569
#### Response:

0 commit comments

Comments
 (0)