aboutsummaryrefslogtreecommitdiff
path: root/swagger.json
diff options
context:
space:
mode:
authorChristoph Krey <krey.christoph@gmail.com>2017-07-01 21:20:41 +0200
committerChristoph Krey <krey.christoph@gmail.com>2017-07-01 21:20:41 +0200
commit4fce9334c72acf8e7ef78c7b2c7b60380e77e6cb (patch)
tree697c7d8898e70d81f1d4d8e0498f86c7b122c460 /swagger.json
parent89f5ca6340b71f01e57684ed4900c801e043a9c4 (diff)
downloadtrackermap-server-4fce9334c72acf8e7ef78c7b2c7b60380e77e6cb.tar.gz
trackermap-server-4fce9334c72acf8e7ef78c7b2c7b60380e77e6cb.tar.bz2
trackermap-server-4fce9334c72acf8e7ef78c7b2c7b60380e77e6cb.zip
[FIX] get devices with IDs works like PositionResource
Diffstat (limited to 'swagger.json')
-rw-r--r--swagger.json27
1 files changed, 8 insertions, 19 deletions
diff --git a/swagger.json b/swagger.json
index 4f62bdf96..734e42eab 100644
--- a/swagger.json
+++ b/swagger.json
@@ -57,6 +57,14 @@
},
{
"$ref": "#/parameters/userId"
+ },
+ {
+ "name" : "id",
+ "in" : "query",
+ "description" : "To fetch one or more devices. Multiple params can be passed like `id=31&id=42`",
+ "required" : false,
+ "type" : "integer",
+ "collectionFormat" : "multi"
}
],
"responses": {
@@ -92,25 +100,6 @@
}
},
"/devices/{id}": {
- "get": {
- "summary": "Get a Device",
- "parameters": [
- {
- "$ref": "#/parameters/entityId"
- },
- {
- "$ref": "#/parameters/Device"
- }
- ],
- "responses": {
- "200": {
- "description": "OK",
- "schema": {
- "$ref": "#/definitions/Device"
- }
- }
- }
- },
"put": {
"summary": "Update a Device",
"parameters": [