aboutsummaryrefslogtreecommitdiff
path: root/swagger.json
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-09-20 22:15:47 +1200
committerGitHub <noreply@github.com>2017-09-20 22:15:47 +1200
commit06bdcf65a08b233f6c56ddf4774287c0c0232597 (patch)
treeaaf585157b84016713eaf74e54d7d1807f74398b /swagger.json
parent849878cf105baed2348c605f7232012efb294480 (diff)
parentb7a5bb6d48ba0363e9437f44eaa546de16f27aef (diff)
downloadtrackermap-server-06bdcf65a08b233f6c56ddf4774287c0c0232597.tar.gz
trackermap-server-06bdcf65a08b233f6c56ddf4774287c0c0232597.tar.bz2
trackermap-server-06bdcf65a08b233f6c56ddf4774287c0c0232597.zip
Merge pull request #3538 from Abyss777/move_command_types
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",