aboutsummaryrefslogtreecommitdiff
path: root/swagger.json
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-09-20 13:26:21 +0500
committerAbyss777 <abyss@fox5.ru>2017-09-20 13:26:21 +0500
commit9daa51652f28066534d42046961990e15b490562 (patch)
treeebdbf307e4a01190f4244b1806ce2a8b512362cd /swagger.json
parent849878cf105baed2348c605f7232012efb294480 (diff)
downloadtrackermap-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.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",