diff options
author | Sun Howwrongbum <sun@adrenosapient.com> | 2016-12-06 02:17:12 +0530 |
---|---|---|
committer | Sun Howwrongbum <sun@adrenosapient.com> | 2016-12-06 02:17:12 +0530 |
commit | 0e47bd14846de72381179734daf402267abb694f (patch) | |
tree | 78f28bcf34b74df8bc6cd2f8e0ca13441ef64ad0 /swagger.json | |
parent | 8e0009ae4889ebf460bb87b83ab50a72d1926ac3 (diff) | |
download | trackermap-server-0e47bd14846de72381179734daf402267abb694f.tar.gz trackermap-server-0e47bd14846de72381179734daf402267abb694f.tar.bz2 trackermap-server-0e47bd14846de72381179734daf402267abb694f.zip |
[swagger] Describe /commands
- remove unnecessary entries
Diffstat (limited to 'swagger.json')
-rw-r--r-- | swagger.json | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/swagger.json b/swagger.json index 705d887ac..0d887d97c 100644 --- a/swagger.json +++ b/swagger.json @@ -17,13 +17,8 @@ ], "paths": { "/commands": { + "summary": "Dispatch commands to device", "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], "parameters": [ { "name": "body", @@ -37,10 +32,12 @@ "responses": { "200": { "description": "OK", - "headers": {}, "schema": { "$ref": "#/definitions/Command" } + }, + "400": { + "description": "Could happen when dispatching to the device is offline, the user doesn't have permission or an incorrect command _type_." } } } |