diff options
author | Abyss777 <abyss@fox5.ru> | 2016-08-29 10:23:03 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-08-29 10:23:03 +0500 |
commit | f21eedf4d319e0478fa22c86ec5587923306c1ff (patch) | |
tree | 7f23e086e2a652f4fbd7e873c251a5cb03fa82bb | |
parent | e129ae7cdc6d70a1b0d6b5c05b8ce7e3c4b696ec (diff) | |
download | traccar-server-f21eedf4d319e0478fa22c86ec5587923306c1ff.tar.gz traccar-server-f21eedf4d319e0478fa22c86ec5587923306c1ff.tar.bz2 traccar-server-f21eedf4d319e0478fa22c86ec5587923306c1ff.zip |
Added "/reports/*" path to swagger.json
-rw-r--r-- | swagger.json | 234 |
1 files changed, 234 insertions, 0 deletions
diff --git a/swagger.json b/swagger.json index 4870441b9..cd44c953a 100644 --- a/swagger.json +++ b/swagger.json @@ -1108,6 +1108,240 @@ } } } + }, + "/reports/route": { + "get": { + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "deviceId", + "in": "query", + "description": "at least one deviceId or one groupId must be passed", + "required": true, + "type": "array", + "items": { + "type": "integer" + } + }, + { + "name": "groupId", + "in": "query", + "description": "at least one deviceId or one groupId must be passed", + "required": true, + "type": "array", + "items": { + "type": "integer" + } + }, + { + "name": "from", + "in": "query", + "required": true, + "type": "string" + }, + { + "name": "to", + "in": "query", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": {}, + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/Position" + } + } + } + } + } + }, + "/reports/events": { + "get": { + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "deviceId", + "in": "query", + "description": "at least one deviceId or one groupId must be passed", + "required": true, + "type": "array", + "items": { + "type": "integer" + } + }, + { + "name": "groupId", + "in": "query", + "description": "at least one deviceId or one groupId must be passed", + "required": true, + "type": "array", + "items": { + "type": "integer" + } + }, + { + "name": "type", + "in": "query", + "description": "% can be used to return events of all types", + "required": true, + "type": "array", + "items": { + "type": "string" + } + }, + { + "name": "from", + "in": "query", + "required": true, + "type": "string" + }, + { + "name": "to", + "in": "query", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": {}, + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/Event" + } + } + } + } + } + }, + "/reports/summary": { + "get": { + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "deviceId", + "in": "query", + "description": "at least one deviceId or one groupId must be passed", + "required": true, + "type": "array", + "items": { + "type": "integer" + } + }, + { + "name": "groupId", + "in": "query", + "description": "at least one deviceId or one groupId must be passed", + "required": true, + "type": "array", + "items": { + "type": "integer" + } + }, + { + "name": "from", + "in": "query", + "required": true, + "type": "string" + }, + { + "name": "to", + "in": "query", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": {}, + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/ReportSummary" + } + } + } + } + } + }, + "/reports/trips": { + "get": { + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "deviceId", + "in": "query", + "description": "at least one deviceId or one groupId must be passed", + "required": true, + "type": "array", + "items": { + "type": "integer" + } + }, + { + "name": "groupId", + "in": "query", + "description": "at least one deviceId or one groupId must be passed", + "required": true, + "type": "array", + "items": { + "type": "integer" + } + }, + { + "name": "from", + "in": "query", + "required": true, + "type": "string" + }, + { + "name": "to", + "in": "query", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": {}, + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/ReportTrips" + } + } + } + } + } } }, "definitions": { |