diff options
author | Steven Bouma <stevenbouma@gmail.com> | 2016-08-10 11:04:51 +0200 |
---|---|---|
committer | Steven Bouma <stevenbouma@gmail.com> | 2016-08-10 11:04:51 +0200 |
commit | e0d21d48ea77ccbe26362a8362f89143d0885ee3 (patch) | |
tree | 603bba0cca02f75bc400714c817672b13cd8e928 /swagger.json | |
parent | 988ee3cc1067ef3cd63c5f5f4b4363fd9b048c84 (diff) | |
download | trackermap-server-e0d21d48ea77ccbe26362a8362f89143d0885ee3.tar.gz trackermap-server-e0d21d48ea77ccbe26362a8362f89143d0885ee3.tar.bz2 trackermap-server-e0d21d48ea77ccbe26362a8362f89143d0885ee3.zip |
Adjusted swagger.json, query parameters for GET /positions are not marked required. This allows generated clients to call /positions with or without additional parameters. Also updated Position model to include deviceId.
Diffstat (limited to 'swagger.json')
-rw-r--r-- | swagger.json | 10 |
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" }, |