diff --git a/docs/device_api.md b/docs/device_api.md index 76a164b..59ab5dc 100644 --- a/docs/device_api.md +++ b/docs/device_api.md @@ -28,13 +28,13 @@ South Bound protocol again. Use the provided data for future interactions. The following excerpt shows you how to provision a Configuration Group directly to the API: - POST /iot/services?protocol=IoTA-UL + POST /iot/configGroups?protocol=IoTA-UL Content-Type: application/json Fiware-service: OpenIoT Fiware-servicepath: / { - "services": [ + "configGroups": [ { "apikey": "801230BJKL23Y9090DSFL123HJK09H324HV8732", "entity_type": "SensorMachine", diff --git a/docs/topics/device_connection.md b/docs/topics/device_connection.md index 35b84a6..95c74df 100644 --- a/docs/topics/device_connection.md +++ b/docs/topics/device_connection.md @@ -30,13 +30,13 @@ belong to that particular group. The following request will create the required group for our subservice: - POST /iot/services + POST /iot/configGroups Content-Type: application/json Fiware-service: smartown Fiware-servicepath: /gardens { - "services": [ + "configGroups": [ { "protocol": [ "IoTA-UL" diff --git a/docs/topics/geolocalized_entities.md b/docs/topics/geolocalized_entities.md index e17d54d..1d45581 100644 --- a/docs/topics/geolocalized_entities.md +++ b/docs/topics/geolocalized_entities.md @@ -26,13 +26,13 @@ geo-locate them as `geo:point` using the model transformation functionality. Let Sensor information can be reported either directly in the `latitude, longitude` format, or separately, by using expressions to combine the information into a geo point. To do so, the car provisioning should be changed to reflect this new information. If the sensor information is sent using : - POST /iot/services + POST /iot/configGroups Content-Type: application/json Fiware-service: smartown Fiware-servicepath: /roads { - "services": [ + "configGroups": [ { "protocol": [ "IoTA-UL" diff --git a/docs/topics/how_notifications_work.md b/docs/topics/how_notifications_work.md index 7f4d881..4e465f4 100644 --- a/docs/topics/how_notifications_work.md +++ b/docs/topics/how_notifications_work.md @@ -14,13 +14,13 @@ onboard sensor, all them managed by the platform [IoT Agents](../device_gateway. between the sensor and the platform. First of all, the sensor provider has to provision a Configuration Group for its devices. This can be achieved with the following query: - POST /iot/services + POST /iot/configGroups Content-Type: application/json Fiware-service: smartown Fiware-servicepath: /roads { - "services": [ + "configGroups": [ { "protocol": [ "IoTA-UL" diff --git a/postman/ThinkingCities APIs Basic Ops.postman_collection.json b/postman/ThinkingCities APIs Basic Ops.postman_collection.json index b9d95c6..1a22c18 100644 --- a/postman/ThinkingCities APIs Basic Ops.postman_collection.json +++ b/postman/ThinkingCities APIs Basic Ops.postman_collection.json @@ -984,17 +984,17 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"services\": [\r\n {\r\n \"apikey\": \"{{JSON_APIKEY}}\",\r\n \"entity_type\": \"device\",\r\n \"attributes\": [\r\n { \"object_id\": \"t\", \"name\": \"temperature\", \"type\": \"float\" },\r\n { \"object_id\": \"h\", \"name\": \"humidity\", \"type\": \"float\" }\r\n ],\r\n \"static_attributes\": [\r\n { \"name\": \"deviceFamily\", \"type\": \"integer\", \"value\": \"02598347\" }\r\n ], \r\n \"lazy\": [\r\n { \"object_id\": \"l\", \"name\": \"luminosity\", \"type\": \"percentage\" }\r\n ],\r\n \"commands\": [\r\n \t{ \"object_id\": \"u\", \"name\": \"turn\", \"type\": \"string\" }\r\n ],\r\n \"protocol\": [ \"IoTA-JSON\" ]\r\n }\r\n ]\r\n}" + "raw": "{\r\n \"configGroups\": [\r\n {\r\n \"apikey\": \"{{JSON_APIKEY}}\",\r\n \"entity_type\": \"device\",\r\n \"attributes\": [\r\n { \"object_id\": \"t\", \"name\": \"temperature\", \"type\": \"float\" },\r\n { \"object_id\": \"h\", \"name\": \"humidity\", \"type\": \"float\" }\r\n ],\r\n \"static_attributes\": [\r\n { \"name\": \"deviceFamily\", \"type\": \"integer\", \"value\": \"02598347\" }\r\n ], \r\n \"lazy\": [\r\n { \"object_id\": \"l\", \"name\": \"luminosity\", \"type\": \"percentage\" }\r\n ],\r\n \"commands\": [\r\n \t{ \"object_id\": \"u\", \"name\": \"turn\", \"type\": \"string\" }\r\n ],\r\n \"protocol\": [ \"IoTA-JSON\" ]\r\n }\r\n ]\r\n}" }, "url": { - "raw": "{{PROTOCOL}}://{{ENDPOINT_IOTAM}}/iot/services", + "raw": "{{PROTOCOL}}://{{ENDPOINT_IOTAM}}/iot/configGroups", "protocol": "{{PROTOCOL}}", "host": [ "{{ENDPOINT_IOTAM}}" ], "path": [ "iot", - "services" + "configGroups" ] } }, @@ -1024,17 +1024,17 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"services\": [\r\n {\r\n \"apikey\": \"{{UL_APIKEY}}\",\r\n \"entity_type\": \"device\",\r\n \"attributes\": [\r\n { \"object_id\": \"t\", \"name\": \"temperature\", \"type\": \"float\" },\r\n { \"object_id\": \"h\", \"name\": \"humidity\", \"type\": \"float\" }\r\n ],\r\n \"static_attributes\": [\r\n { \"name\": \"deviceFamily\", \"type\": \"integer\", \"value\": \"02598347\" }\r\n ],\r\n \"commands\": [\r\n \t{ \"object_id\": \"u\", \"name\": \"turn\", \"type\": \"string\" }\r\n ],\r\n \"lazy\": [\r\n { \"object_id\": \"l\", \"name\": \"luminosity\", \"type\": \"percentage\" }\r\n ],\r\n \"protocol\": [ \"IoTA-UL\" ]\r\n }\r\n ]\r\n}" + "raw": "{\r\n \"configGroups\": [\r\n {\r\n \"apikey\": \"{{UL_APIKEY}}\",\r\n \"entity_type\": \"device\",\r\n \"attributes\": [\r\n { \"object_id\": \"t\", \"name\": \"temperature\", \"type\": \"float\" },\r\n { \"object_id\": \"h\", \"name\": \"humidity\", \"type\": \"float\" }\r\n ],\r\n \"static_attributes\": [\r\n { \"name\": \"deviceFamily\", \"type\": \"integer\", \"value\": \"02598347\" }\r\n ],\r\n \"commands\": [\r\n \t{ \"object_id\": \"u\", \"name\": \"turn\", \"type\": \"string\" }\r\n ],\r\n \"lazy\": [\r\n { \"object_id\": \"l\", \"name\": \"luminosity\", \"type\": \"percentage\" }\r\n ],\r\n \"protocol\": [ \"IoTA-UL\" ]\r\n }\r\n ]\r\n}" }, "url": { - "raw": "{{PROTOCOL}}://{{ENDPOINT_IOTAM}}/iot/services", + "raw": "{{PROTOCOL}}://{{ENDPOINT_IOTAM}}/iot/configGroups", "protocol": "{{PROTOCOL}}", "host": [ "{{ENDPOINT_IOTAM}}" ], "path": [ "iot", - "services" + "configGroups" ] } }, @@ -1067,14 +1067,14 @@ "raw": "" }, "url": { - "raw": "{{PROTOCOL}}://{{ENDPOINT_IOTAM}}/iot/services?protocol=IoTA-JSON&apikey={{JSON_APIKEY}}", + "raw": "{{PROTOCOL}}://{{ENDPOINT_IOTAM}}/iot/configGroups?protocol=IoTA-JSON&apikey={{JSON_APIKEY}}", "protocol": "{{PROTOCOL}}", "host": [ "{{ENDPOINT_IOTAM}}" ], "path": [ "iot", - "services" + "configGroups" ], "query": [ { @@ -1117,14 +1117,14 @@ "raw": "" }, "url": { - "raw": "{{PROTOCOL}}://{{ENDPOINT_IOTAM}}/iot/services?protocol=IoTA-UL&apikey={{UL_APIKEY}}", + "raw": "{{PROTOCOL}}://{{ENDPOINT_IOTAM}}/iot/configGroups?protocol=IoTA-UL&apikey={{UL_APIKEY}}", "protocol": "{{PROTOCOL}}", "host": [ "{{ENDPOINT_IOTAM}}" ], "path": [ "iot", - "services" + "configGroups" ], "query": [ { @@ -1163,14 +1163,14 @@ "raw": "" }, "url": { - "raw": "{{PROTOCOL}}://{{ENDPOINT_IOTAM}}/iot/services", + "raw": "{{PROTOCOL}}://{{ENDPOINT_IOTAM}}/iot/configGroups", "protocol": "{{PROTOCOL}}", "host": [ "{{ENDPOINT_IOTAM}}" ], "path": [ "iot", - "services" + "configGroups" ] } },