@@ -701,17 +701,20 @@ add the `fiware-service` and `fiware-service-path` headers.
701701
702702` ` ` console
703703curl -G -iX GET 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Device:temperature001' \
704- -H 'fiware-service : openiot' \
705- -H 'fiware-servicepath: / ' \
706- -H 'Link: <http://context/ngsi -context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
704+ -H 'NGSILD-Tenant : openiot' \
705+ -H 'Accept: application/ld+json ' \
706+ -H 'Link: <http://context/user -context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
707707 -d 'attrs=temperature'
708708` ` `
709709
710710# ### Response:
711711
712712` ` ` json
713713{
714- "@context": "http://context/ngsi-context.jsonld",
714+ "@context": [
715+ "http://context/ngsi-context.jsonld",
716+ "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.7.jsonld"
717+ ],
715718 "id": "urn:ngsi-ld:Device:temperature001",
716719 "type": "Device",
717720 "temperature": {
@@ -752,17 +755,20 @@ based on the knowledge of the service group
752755
753756` ` ` console
754757curl -L -X GET 'http://localhost:1026/ngsi-ld/v1/entities/?type=Device' \
755- -H 'NGSILD-Tenant: openiot' \
756- -H 'NGSILD-Path: / ' \
757- -H 'Link: <http://context/ngsi -context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"'
758+ -H 'NGSILD-Tenant: openiot' \
759+ -H 'Accept: application/ld+json ' \
760+ -H 'Link: <http://context/user -context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"'
758761` ` `
759762
760763# ### Response:
761764
762765` ` ` json
763766[
764767 {
765- "@context": "http://context/ngsi-context.jsonld",
768+ "@context": [
769+ "http://context/ngsi-context.jsonld",
770+ "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.7.jsonld"
771+ ],
766772 "id": "urn:ngsi-ld:Device:motion003",
767773 "type": "Device",
768774 "c": {
@@ -863,7 +869,7 @@ The result of the command to turn on the irrigation system can be read by queryi
863869` ` ` console
864870curl -L -X GET 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Device:water001' \
865871 -H 'NGSILD-Tenant: openiot' \
866- -H 'Link: <http://context/ngsi -context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
872+ -H 'Link: <http://context/user -context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
867873 -H 'Accept: application/json'
868874` ` `
869875
@@ -909,10 +915,10 @@ both `attributes` and `command` attributes in the body of the request.
909915
910916` ` ` console
911917curl -L -X POST 'http://localhost:4041/iot/devices' \
912- -H 'fiware-service: openiot' \
913- -H 'fiware-servicepath: /' \
914- -H 'Content-Type: application/json' \
915- --data-raw '{
918+ -H 'fiware-service: openiot' \
919+ -H 'fiware-servicepath: /' \
920+ -H 'Content-Type: application/json' \
921+ --data-raw '{
916922 "devices": [
917923 {
918924 "device_id": "filling001",
@@ -968,7 +974,7 @@ curl -L -X POST 'http://localhost:4041/iot/devices' \
968974 -H 'fiware-service: openiot' \
969975 -H 'fiware-servicepath: /' \
970976 -H 'Content-Type: application/json' \
971- --data-raw '{
977+ --data-raw '{
972978 "devices": [
973979 {
974980 "device_id": "tractor001",
@@ -1025,7 +1031,7 @@ To invoke the `on` command, the `on` attribute must be updated in the context.
10251031curl -L -X PATCH 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Device:water001/attrs/on' \
10261032-H 'NGSILD-Tenant: openiot' \
10271033-H 'Content-Type: application/json' \
1028- -H 'Link: <http://context/ngsi -context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
1034+ -H 'Link: <http://context/user -context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
10291035--data-raw '{
10301036
10311037 "type": "Property",
@@ -1048,7 +1054,7 @@ To invoke the `start` command, the `start` attribute must be updated in the cont
10481054curl -L -X PATCH 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Device:tractor001/attrs/start' \
10491055 -H 'NGSILD-Tenant: openiot' \
10501056 -H 'Content-Type: application/json' \
1051- -H 'Link: <http://context/ngsi -context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
1057+ -H 'Link: <http://context/user -context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
10521058--data-raw '{
10531059
10541060 "type": "Property",
@@ -1067,7 +1073,7 @@ Change the state of the **Fillling System**, the `add` attribute must be updated
10671073curl -L -X PATCH 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Device:filling001/attrs/add' \
10681074 -H 'NGSILD-Tenant: openiot' \
10691075 -H 'Content-Type: application/json' \
1070- -H 'Link: <http://context/ngsi -context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
1076+ -H 'Link: <http://context/user -context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
10711077--data-raw '{
10721078
10731079 "type": "Property",
0 commit comments