aboutsummaryrefslogtreecommitdiff
path: root/swagger.json
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-10-19 10:03:02 +0500
committerAbyss777 <abyss@fox5.ru>2017-10-19 10:03:02 +0500
commita2f215fe63bd313bfac2a894c170673ccbc252c4 (patch)
tree2fa849c58b91133a4c3335e72477561f45152d9d /swagger.json
parent3f5a5e81fe08c7ae0b136d52b4840d5085e12f23 (diff)
downloadtraccar-server-a2f215fe63bd313bfac2a894c170673ccbc252c4.tar.gz
traccar-server-a2f215fe63bd313bfac2a894c170673ccbc252c4.tar.bz2
traccar-server-a2f215fe63bd313bfac2a894c170673ccbc252c4.zip
Implement buffered commands
Diffstat (limited to 'swagger.json')
-rw-r--r--swagger.json14
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"
}
}
}