Skip to content

Commit 747d570

Browse files
committed
Explicitly add apiKey
1 parent 9156a92 commit 747d570

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

FIWARE IoT Agent JSON.postman_collection.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
],
8989
"body": {
9090
"mode": "raw",
91-
"raw": "{\n \"devices\": [\n {\n \"device_id\": \"motion013\",\n \"entity_name\": \"urn:ngsi-ld:Motion:010\",\n \"entity_type\": \"Motion\",\n \"timezone\": \"Europe/Berlin\",\n \"expressionLanguage\": \"jexl\",\n \"attributes\": [\n {\n \"name\": \"location\",\n \"type\": \"geo:point\",\n \"expression\": \"{coordinates: [lon,lat], type: 'Point'}\"\n },\n {\n \"name\": \"TimeInstant\",\n \"type\": \"DateTime\",\n \"expression\": \"ts|toisodate\"\n },\n {\n \"name\": \"lat\",\n \"type\": \"Number\"\n },\n {\n \"name\": \"lon\",\n \"type\": \"Number\"\n },\n {\n \"name\": \"ts\",\n \"type\": \"Number\"\n }\n ]\n }\n ]\n}"
91+
"raw": "{\n \"devices\": [\n {\n \"device_id\": \"motion013\",\n \"entity_name\": \"urn:ngsi-ld:Motion:010\",\n \"entity_type\": \"Motion\",\n \"apikey\": \"4jggokgpepnvsb2uv4s40d59ov\",\n \"timezone\": \"Europe/Berlin\",\n \"expressionLanguage\": \"jexl\",\n \"attributes\": [\n {\n \"name\": \"location\",\n \"type\": \"geo:point\",\n \"expression\": \"{coordinates: [lon,lat], type: 'Point'}\"\n },\n {\n \"name\": \"TimeInstant\",\n \"type\": \"DateTime\",\n \"expression\": \"ts|toisodate\"\n },\n {\n \"name\": \"lat\",\n \"type\": \"Number\"\n },\n {\n \"name\": \"lon\",\n \"type\": \"Number\"\n },\n {\n \"name\": \"ts\",\n \"type\": \"Number\"\n }\n ]\n }\n ]\n}"
9292
},
9393
"url": {
9494
"raw": "http://{{iot-agent}}/iot/devices",
@@ -195,7 +195,7 @@
195195
],
196196
"body": {
197197
"mode": "raw",
198-
"raw": "{\n \"devices\": [\n {\n \"device_id\": \"bell001\",\n \"entity_name\": \"urn:ngsi-ld:Bell:001\",\n \"entity_type\": \"Bell\",\n \"protocol\": \"PDI-IoTA-UltraLight\",\n \"transport\": \"HTTP\",\n \"endpoint\": \"http://context-provider:3001/iot/bell001\",\n \"commands\": [ \n {\n \"name\": \"ring\",\n \"type\": \"command\"\n }\n ],\n \"static_attributes\": [\n {\"name\":\"refStore\", \"type\": \"Relationship\",\"value\": \"urn:ngsi-ld:Store:001\"}\n \t]\n }\n ]\n}\n"
198+
"raw": "{\n \"devices\": [\n {\n \"device_id\": \"bell001\",\n \"entity_name\": \"urn:ngsi-ld:Bell:001\",\n \"entity_type\": \"Bell\",\n \"apikey\": \"4jggokgpepnvsb2uv4s40d59ov\",\n \"protocol\": \"PDI-IoTA-UltraLight\",\n \"transport\": \"HTTP\",\n \"endpoint\": \"http://context-provider:3001/iot/bell001\",\n \"commands\": [ \n {\n \"name\": \"ring\",\n \"type\": \"command\"\n }\n ],\n \"static_attributes\": [\n {\"name\":\"refStore\", \"type\": \"Relationship\",\"value\": \"urn:ngsi-ld:Store:001\"}\n \t]\n }\n ]\n}\n"
199199
},
200200
"url": {
201201
"raw": "http://{{iot-agent}}/iot/devices",
@@ -306,7 +306,7 @@
306306
],
307307
"body": {
308308
"mode": "raw",
309-
"raw": "{\n \"devices\": [\n {\n \"device_id\": \"door001\",\n \"entity_name\": \"urn:ngsi-ld:Door:001\",\n \"entity_type\": \"Door\",\n \"protocol\": \"PDI-IoTA-UltraLight\",\n \"transport\": \"HTTP\",\n \"endpoint\": \"http://context-provider:3001/iot/door001\",\n \"commands\": [ \n {\"name\": \"unlock\",\"type\": \"command\"},\n {\"name\": \"open\",\"type\": \"command\"},\n {\"name\": \"close\",\"type\": \"command\"},\n {\"name\": \"lock\",\"type\": \"command\"}\n ],\n \"attributes\": [\n \t{\"object_id\": \"s\", \"name\": \"state\", \"type\":\"Text\"}\n ],\n \"static_attributes\": [\n {\"name\":\"refStore\", \"type\": \"Relationship\",\"value\": \"urn:ngsi-ld:Store:001\"}\n ]\n }\n ]\n}\n"
309+
"raw": "{\n \"devices\": [\n {\n \"device_id\": \"door001\",\n \"entity_name\": \"urn:ngsi-ld:Door:001\",\n \"entity_type\": \"Door\",\n \"apikey\": \"4jggokgpepnvsb2uv4s40d59ov\",\n \"protocol\": \"PDI-IoTA-UltraLight\",\n \"transport\": \"HTTP\",\n \"endpoint\": \"http://context-provider:3001/iot/door001\",\n \"commands\": [ \n {\"name\": \"unlock\",\"type\": \"command\"},\n {\"name\": \"open\",\"type\": \"command\"},\n {\"name\": \"close\",\"type\": \"command\"},\n {\"name\": \"lock\",\"type\": \"command\"}\n ],\n \"attributes\": [\n \t{\"object_id\": \"s\", \"name\": \"state\", \"type\":\"Text\"}\n ],\n \"static_attributes\": [\n {\"name\":\"refStore\", \"type\": \"Relationship\",\"value\": \"urn:ngsi-ld:Store:001\"}\n ]\n }\n ]\n}\n"
310310
},
311311
"url": {
312312
"raw": "http://{{iot-agent}}/iot/devices",
@@ -343,7 +343,7 @@
343343
],
344344
"body": {
345345
"mode": "raw",
346-
"raw": "{\n \"devices\": [\n {\n \"device_id\": \"lamp001\",\n \"entity_name\": \"urn:ngsi-ld:Lamp:001\",\n \"entity_type\": \"Lamp\",\n \"protocol\": \"PDI-IoTA-UltraLight\",\n \"transport\": \"HTTP\",\n \"endpoint\": \"http://context-provider:3001/iot/lamp001\",\n \"commands\": [ \n {\"name\": \"on\",\"type\": \"command\"},\n {\"name\": \"off\",\"type\": \"command\"}\n ],\n \"attributes\": [\n \t{\"object_id\": \"s\", \"name\": \"state\", \"type\":\"Text\"},\n {\"object_id\": \"l\", \"name\": \"luminosity\", \"type\":\"Integer\"}\n ],\n \"static_attributes\": [\n {\"name\":\"refStore\", \"type\": \"Relationship\",\"value\": \"urn:ngsi-ld:Store:001\"}\n \t]\n }\n ]\n}\n"
346+
"raw": "{\n \"devices\": [\n {\n \"device_id\": \"lamp001\",\n \"entity_name\": \"urn:ngsi-ld:Lamp:001\",\n \"entity_type\": \"Lamp\",\n \"apikey\": \"4jggokgpepnvsb2uv4s40d59ov\",\n \"protocol\": \"PDI-IoTA-UltraLight\",\n \"transport\": \"HTTP\",\n \"endpoint\": \"http://context-provider:3001/iot/lamp001\",\n \"commands\": [ \n {\"name\": \"on\",\"type\": \"command\"},\n {\"name\": \"off\",\"type\": \"command\"}\n ],\n \"attributes\": [\n \t{\"object_id\": \"s\", \"name\": \"state\", \"type\":\"Text\"},\n {\"object_id\": \"l\", \"name\": \"luminosity\", \"type\":\"Integer\"}\n ],\n \"static_attributes\": [\n {\"name\":\"refStore\", \"type\": \"Relationship\",\"value\": \"urn:ngsi-ld:Store:001\"}\n \t]\n }\n ]\n}\n"
347347
},
348348
"url": {
349349
"raw": "http://{{iot-agent}}/iot/devices",
@@ -1025,7 +1025,7 @@
10251025
],
10261026
"body": {
10271027
"mode": "raw",
1028-
"raw": "{\n \"devices\": [\n {\n \"device_id\": \"bell002\",\n \"entity_name\": \"urn:ngsi-ld:Bell:002\",\n \"entity_type\": \"Bell\",\n \"protocol\": \"PDI-IoTA-UltraLight\",\n \"transport\": \"HTTP\",\n \"endpoint\": \"http://context-provider:3001/iot/bell002\",\n \"commands\": [ \n {\n \"name\": \"ring\",\n \"type\": \"command\"\n }\n ],\n \"static_attributes\": [\n {\"name\":\"refStore\", \"type\": \"Relationship\",\"value\": \"urn:ngsi-ld:Store:002\"}\n \t]\n }\n ]\n}\n"
1028+
"raw": "{\n \"devices\": [\n {\n \"device_id\": \"bell002\",\n \"entity_name\": \"urn:ngsi-ld:Bell:002\",\n \"entity_type\": \"Bell\",\n \"apikey\": \"4jggokgpepnvsb2uv4s40d59ov\",\n \"protocol\": \"PDI-IoTA-UltraLight\",\n \"transport\": \"HTTP\",\n \"endpoint\": \"http://context-provider:3001/iot/bell002\",\n \"commands\": [ \n {\n \"name\": \"ring\",\n \"type\": \"command\"\n }\n ],\n \"static_attributes\": [\n {\"name\":\"refStore\", \"type\": \"Relationship\",\"value\": \"urn:ngsi-ld:Store:002\"}\n \t]\n }\n ]\n}\n"
10291029
},
10301030
"url": {
10311031
"raw": "http://{{iot-agent}}/iot/devices",

README.ja.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -816,6 +816,7 @@ curl -iX POST \
816816
"device_id": "bell001",
817817
"entity_name": "urn:ngsi-ld:Bell:001",
818818
"entity_type": "Bell",
819+
"apikey": "4jggokgpepnvsb2uv4s40d59ov",
819820
"transport": "HTTP",
820821
"endpoint": "http://iot-sensors:3001/iot/bell001",
821822
"commands": [
@@ -918,6 +919,7 @@ curl -iX POST \
918919
"device_id": "door001",
919920
"entity_name": "urn:ngsi-ld:Door:001",
920921
"entity_type": "Door",
922+
"apikey": "4jggokgpepnvsb2uv4s40d59ov",
921923
"transport": "HTTP",
922924
"endpoint": "http://iot-sensors:3001/iot/door001",
923925
"commands": [
@@ -959,6 +961,7 @@ curl -iX POST \
959961
"device_id": "lamp001",
960962
"entity_name": "urn:ngsi-ld:Lamp:001",
961963
"entity_type": "Lamp",
964+
"apikey": "4jggokgpepnvsb2uv4s40d59ov",
962965
"transport": "HTTP",
963966
"endpoint": "http://iot-sensors:3001/iot/lamp001",
964967
"commands": [

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -711,6 +711,7 @@ curl -iX POST \
711711
"device_id": "bell001",
712712
"entity_name": "urn:ngsi-ld:Bell:001",
713713
"entity_type": "Bell",
714+
"apikey": "4jggokgpepnvsb2uv4s40d59ov",
714715
"transport": "HTTP",
715716
"endpoint": "http://iot-sensors:3001/iot/bell001",
716717
"commands": [
@@ -807,6 +808,7 @@ curl -iX POST \
807808
"device_id": "door001",
808809
"entity_name": "urn:ngsi-ld:Door:001",
809810
"entity_type": "Door",
811+
"apikey": "4jggokgpepnvsb2uv4s40d59ov",
810812
"transport": "HTTP",
811813
"endpoint": "http://iot-sensors:3001/iot/door001",
812814
"commands": [
@@ -845,6 +847,7 @@ curl -iX POST \
845847
"device_id": "lamp001",
846848
"entity_name": "urn:ngsi-ld:Lamp:001",
847849
"entity_type": "Lamp",
850+
"apikey": "4jggokgpepnvsb2uv4s40d59ov",
848851
"transport": "HTTP",
849852
"endpoint": "http://iot-sensors:3001/iot/lamp001",
850853
"commands": [

0 commit comments

Comments
 (0)