diff --git a/FIWARE IoT Agent JSON.postman_collection.json b/FIWARE IoT Agent JSON.postman_collection.json index 8e19ea5..52720d5 100644 --- a/FIWARE IoT Agent JSON.postman_collection.json +++ b/FIWARE IoT Agent JSON.postman_collection.json @@ -88,7 +88,7 @@ ], "body": { "mode": "raw", - "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}" + "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}" }, "url": { "raw": "http://{{iot-agent}}/iot/devices", @@ -195,7 +195,7 @@ ], "body": { "mode": "raw", - "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" + "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" }, "url": { "raw": "http://{{iot-agent}}/iot/devices", @@ -306,7 +306,7 @@ ], "body": { "mode": "raw", - "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" + "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" }, "url": { "raw": "http://{{iot-agent}}/iot/devices", @@ -343,7 +343,7 @@ ], "body": { "mode": "raw", - "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" + "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" }, "url": { "raw": "http://{{iot-agent}}/iot/devices", @@ -1025,7 +1025,7 @@ ], "body": { "mode": "raw", - "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" + "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" }, "url": { "raw": "http://{{iot-agent}}/iot/devices", diff --git a/README.ja.md b/README.ja.md index 2f4b641..60850bb 100644 --- a/README.ja.md +++ b/README.ja.md @@ -816,6 +816,7 @@ curl -iX POST \ "device_id": "bell001", "entity_name": "urn:ngsi-ld:Bell:001", "entity_type": "Bell", + "apikey": "4jggokgpepnvsb2uv4s40d59ov", "transport": "HTTP", "endpoint": "http://iot-sensors:3001/iot/bell001", "commands": [ @@ -918,6 +919,7 @@ curl -iX POST \ "device_id": "door001", "entity_name": "urn:ngsi-ld:Door:001", "entity_type": "Door", + "apikey": "4jggokgpepnvsb2uv4s40d59ov", "transport": "HTTP", "endpoint": "http://iot-sensors:3001/iot/door001", "commands": [ @@ -959,6 +961,7 @@ curl -iX POST \ "device_id": "lamp001", "entity_name": "urn:ngsi-ld:Lamp:001", "entity_type": "Lamp", + "apikey": "4jggokgpepnvsb2uv4s40d59ov", "transport": "HTTP", "endpoint": "http://iot-sensors:3001/iot/lamp001", "commands": [ diff --git a/README.md b/README.md index 6190c46..cf347d2 100644 --- a/README.md +++ b/README.md @@ -711,6 +711,7 @@ curl -iX POST \ "device_id": "bell001", "entity_name": "urn:ngsi-ld:Bell:001", "entity_type": "Bell", + "apikey": "4jggokgpepnvsb2uv4s40d59ov", "transport": "HTTP", "endpoint": "http://iot-sensors:3001/iot/bell001", "commands": [ @@ -807,6 +808,7 @@ curl -iX POST \ "device_id": "door001", "entity_name": "urn:ngsi-ld:Door:001", "entity_type": "Door", + "apikey": "4jggokgpepnvsb2uv4s40d59ov", "transport": "HTTP", "endpoint": "http://iot-sensors:3001/iot/door001", "commands": [ @@ -845,6 +847,7 @@ curl -iX POST \ "device_id": "lamp001", "entity_name": "urn:ngsi-ld:Lamp:001", "entity_type": "Lamp", + "apikey": "4jggokgpepnvsb2uv4s40d59ov", "transport": "HTTP", "endpoint": "http://iot-sensors:3001/iot/lamp001", "commands": [