diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-10-20 23:16:33 +1300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-20 23:16:33 +1300 |
commit | 0bf2902297a5f48019675790df60353a27ad80d3 (patch) | |
tree | 7232a13a32dece7f341ad007158d73781209e8fd /swagger.json | |
parent | f5d309d193d1549d29314310b9c2a7bf0caf42af (diff) | |
parent | 91da9fa8e53836e71c36609132c38797317ae9e1 (diff) | |
download | trackermap-server-0bf2902297a5f48019675790df60353a27ad80d3.tar.gz trackermap-server-0bf2902297a5f48019675790df60353a27ad80d3.tar.bz2 trackermap-server-0bf2902297a5f48019675790df60353a27ad80d3.zip |
Merge pull request #3589 from Abyss777/buffered_commands
Implement buffered/delayed commands
Diffstat (limited to 'swagger.json')
-rw-r--r-- | swagger.json | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/swagger.json b/swagger.json index 120544798..82f34ac1d 100644 --- a/swagger.json +++ b/swagger.json @@ -108,11 +108,11 @@ "/commands/send": { "get": { "summary": "Fetch a list of Saved Commands supported by Device at the moment", - "description": "Return a list of saved commands linked to Device and its groups, filtered by current Device state and protocol support", + "description": "Return a list of saved commands linked to Device and its groups, filtered by current Device protocol support", "parameters": [ { "$ref": "#/parameters/deviceId" - }, + } ], "responses": { "200": { @@ -144,13 +144,19 @@ ], "responses": { "200": { - "description": "OK", + "description": "Command sent", + "schema": { + "$ref": "#/definitions/Command" + } + }, + "202": { + "description": "Command queued", "schema": { "$ref": "#/definitions/Command" } }, "400": { - "description": "Could happen when dispatching to a device that is offline, the user doesn't have permission or an incorrect command _type_ for the device" + "description": "Could happen when the user doesn't have permission or an incorrect command _type_ for the device" } } } |