Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes services to configGroups in IOTA API #119

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/device_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions docs/topics/device_connection.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions docs/topics/geolocalized_entities.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions docs/topics/how_notifications_work.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
24 changes: 12 additions & 12 deletions postman/ThinkingCities APIs Basic Ops.postman_collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
}
},
Expand Down Expand Up @@ -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"
]
}
},
Expand Down Expand Up @@ -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": [
{
Expand Down Expand Up @@ -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": [
{
Expand Down Expand Up @@ -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"
]
}
},
Expand Down