diff options
author | Abyss777 <abyss@fox5.ru> | 2017-10-19 10:03:02 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2017-10-19 10:03:02 +0500 |
commit | a2f215fe63bd313bfac2a894c170673ccbc252c4 (patch) | |
tree | 2fa849c58b91133a4c3335e72477561f45152d9d /swagger.json | |
parent | 3f5a5e81fe08c7ae0b136d52b4840d5085e12f23 (diff) | |
download | trackermap-server-a2f215fe63bd313bfac2a894c170673ccbc252c4.tar.gz trackermap-server-a2f215fe63bd313bfac2a894c170673ccbc252c4.tar.bz2 trackermap-server-a2f215fe63bd313bfac2a894c170673ccbc252c4.zip |
Implement buffered 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" } } } |