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

[WIP] RENAME /iot/services -> /iot/configGroups in IOTA API #117

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
2 changes: 1 addition & 1 deletion docs/device_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ 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: /
Expand Down
2 changes: 1 addition & 1 deletion docs/topics/device_connection.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ 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
Expand Down
2 changes: 1 addition & 1 deletion docs/topics/geolocalized_entities.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ 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
Expand Down
2 changes: 1 addition & 1 deletion docs/topics/how_notifications_work.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ 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
Expand Down
32 changes: 16 additions & 16 deletions postman/ThinkingCities APIs Basic Ops.postman_collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@
"name": "IOTA",
"item": [
{
"name": "Create service (JSON)",
"name": "Create configuration group (JSON)",
"request": {
"method": "POST",
"header": [
Expand All @@ -987,21 +987,21 @@
"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}"
},
"url": {
"raw": "{{PROTOCOL}}://{{ENDPOINT_IOTAM}}/iot/services",
"raw": "{{PROTOCOL}}://{{ENDPOINT_IOTAM}}/iot/configGroups",
"protocol": "{{PROTOCOL}}",
"host": [
"{{ENDPOINT_IOTAM}}"
],
"path": [
"iot",
"services"
"configGroups"
]
}
},
"response": []
},
{
"name": "Create service (UL)",
"name": "Create configuration group (UL)",
"request": {
"method": "POST",
"header": [
Expand All @@ -1027,21 +1027,21 @@
"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}"
},
"url": {
"raw": "{{PROTOCOL}}://{{ENDPOINT_IOTAM}}/iot/services",
"raw": "{{PROTOCOL}}://{{ENDPOINT_IOTAM}}/iot/configGroups",
"protocol": "{{PROTOCOL}}",
"host": [
"{{ENDPOINT_IOTAM}}"
],
"path": [
"iot",
"services"
"configGroups"
]
}
},
"response": []
},
{
"name": "Delete service (JSON)",
"name": "Delete configuration group (JSON)",
"request": {
"method": "DELETE",
"header": [
Expand All @@ -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 All @@ -1091,7 +1091,7 @@
"response": []
},
{
"name": "Delete service (UL)",
"name": "Delete configuration group (UL)",
"request": {
"method": "DELETE",
"header": [
Expand All @@ -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 All @@ -1141,7 +1141,7 @@
"response": []
},
{
"name": "Get all services",
"name": "Get all configuation groups",
"request": {
"method": "GET",
"header": [
Expand All @@ -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 Expand Up @@ -2919,4 +2919,4 @@
]
}
]
}
}