aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-08-10 10:23:19 +0300
committerGitHub <noreply@github.com>2016-08-10 10:23:19 +0300
commit21641679ddc92ad3f51ae6e84409c9186e668bbc (patch)
tree603bba0cca02f75bc400714c817672b13cd8e928
parent988ee3cc1067ef3cd63c5f5f4b4363fd9b048c84 (diff)
parente0d21d48ea77ccbe26362a8362f89143d0885ee3 (diff)
downloadtrackermap-server-21641679ddc92ad3f51ae6e84409c9186e668bbc.tar.gz
trackermap-server-21641679ddc92ad3f51ae6e84409c9186e668bbc.tar.bz2
trackermap-server-21641679ddc92ad3f51ae6e84409c9186e668bbc.zip
Merge pull request #2202 from stevenbouma/master
Update swagger documentation
-rw-r--r--swagger.json10
1 files changed, 7 insertions, 3 deletions
diff --git a/swagger.json b/swagger.json
index 8b4157917..8fdbbf867 100644
--- a/swagger.json
+++ b/swagger.json
@@ -556,19 +556,20 @@
{
"name": "deviceId",
"in": "query",
- "required": true,
+ "description": "deviceId is optional, but requires the from and to parameters when used",
+ "required": false,
"type": "integer"
},
{
"name": "from",
"in": "query",
- "required": true,
+ "required": false,
"type": "string"
},
{
"name": "to",
"in": "query",
- "required": true,
+ "required": false,
"type": "string"
}
],
@@ -1115,6 +1116,9 @@
"id": {
"type": "integer"
},
+ "deviceId": {
+ "type": "integer"
+ },
"protocol": {
"type": "string"
},