Skip to content

Commit e3a6cd4

Browse files
committed
Update Requests to use pick and format
1 parent 4ba1a22 commit e3a6cd4

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,8 @@ It should be noted that the `@context` supplied in the `Link` header has been to
448448
The `fixed-context` JSON-LD `@context` file fully defines all the terms found within the NGSI-v2 system in terms of IRIs - the file can be accessed as shown.
449449

450450
```console
451-
curl -L 'http://localhost:3004/fixed-context.jsonld'
451+
curl -X GET \
452+
'http://localhost:3004/fixed-context.jsonld'
452453
```
453454

454455
#### Response:
@@ -530,7 +531,8 @@ This NGSI-LD **ContextSourceRegistration** example informs the NGSI-LD context b
530531
#### 5️⃣ Request:
531532

532533
```console
533-
curl -L 'http://localhost:1026/ngsi-ld/v1/csourceRegistrations/' \
534+
curl -X POST \
535+
'http://localhost:1026/ngsi-ld/v1/csourceRegistrations/' \
534536
-H 'Link: <http://context/ngsi-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
535537
-H 'Content-Type: application/json' \
536538
-d '{
@@ -565,7 +567,8 @@ NGSI-LD FMIS system:
565567
#### 6️⃣ Request:
566568

567569
```console
568-
curl -L 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Store:001' \
570+
curl -X GET \
571+
'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Store:001' \
569572
-H 'Link: <http://context/ngsi-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"'
570573
```
571574

@@ -615,8 +618,8 @@ curl -G -X GET \
615618
-H 'Accept: application/ld+json' \
616619
-d 'type=Building' \
617620
-d 'q=category==%22supermarket%22' \
618-
-d 'attrs=name' \
619-
-d 'options=keyValues'
621+
-d 'pick=id,type,name' \
622+
-d 'format=simplified'
620623
```
621624

622625
#### Response:

0 commit comments

Comments
 (0)