aboutsummaryrefslogtreecommitdiff
path: root/swagger.json
diff options
context:
space:
mode:
Diffstat (limited to 'swagger.json')
-rw-r--r--swagger.json62
1 files changed, 31 insertions, 31 deletions
diff --git a/swagger.json b/swagger.json
index 5f9abb9b8..120544798 100644
--- a/swagger.json
+++ b/swagger.json
@@ -155,6 +155,37 @@
}
}
},
+ "/commands/types": {
+ "get": {
+ "summary": "Fetch a list of available Commands for the Device or all possible Commands if Device ommited",
+ "parameters": [
+ {
+ "name": "deviceId",
+ "in": "query",
+ "type": "integer"
+ },
+ {
+ "name": "textChannel",
+ "in": "query",
+ "type": "boolean"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/CommandType"
+ }
+ }
+ },
+ "400": {
+ "description": "Could happen when trying to fetch from a device the user does not have permission"
+ }
+ }
+ }
+ },
"/devices": {
"get": {
"summary": "Fetch a list of Devices",
@@ -742,37 +773,6 @@
}
}
},
- "/commandtypes": {
- "get": {
- "summary": "Fetch a list of available Commands for the Device or all possible Commands if Device ommited",
- "parameters": [
- {
- "name": "deviceId",
- "in": "query",
- "type": "integer"
- },
- {
- "name": "textChannel",
- "in": "query",
- "type": "boolean"
- }
- ],
- "responses": {
- "200": {
- "description": "OK",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/CommandType"
- }
- }
- },
- "400": {
- "description": "Could happen when trying to fetch from a device the user does not have permission"
- }
- }
- }
- },
"/geofences": {
"get": {
"summary": "Fetch a list of Geofences",