diff options
author | Abyss777 <abyss@fox5.ru> | 2017-09-20 13:26:21 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2017-09-20 13:26:21 +0500 |
commit | 9daa51652f28066534d42046961990e15b490562 (patch) | |
tree | ebdbf307e4a01190f4244b1806ce2a8b512362cd /swagger.json | |
parent | 849878cf105baed2348c605f7232012efb294480 (diff) | |
download | trackermap-server-9daa51652f28066534d42046961990e15b490562.tar.gz trackermap-server-9daa51652f28066534d42046961990e15b490562.tar.bz2 trackermap-server-9daa51652f28066534d42046961990e15b490562.zip |
Move Commandtypes API to Commands
Diffstat (limited to 'swagger.json')
-rw-r--r-- | swagger.json | 62 |
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", |