diff options
author | Sun Howwrongbum <sun@adrenosapient.com> | 2016-12-06 03:47:29 +0530 |
---|---|---|
committer | Sun Howwrongbum <sun@adrenosapient.com> | 2016-12-06 03:47:29 +0530 |
commit | e37f4e08d751b083c97ce44aae47f08b5fd04f46 (patch) | |
tree | 9acc1fc9705f0f7b52b68f2c658ba5220f5f27de | |
parent | a0375c8e3067f74ed14c370b2674ea00e9851a9c (diff) | |
download | traccar-server-e37f4e08d751b083c97ce44aae47f08b5fd04f46.tar.gz traccar-server-e37f4e08d751b083c97ce44aae47f08b5fd04f46.tar.bz2 traccar-server-e37f4e08d751b083c97ce44aae47f08b5fd04f46.zip |
[swagger] Describe /permissions
-rw-r--r-- | swagger.json | 57 |
1 files changed, 12 insertions, 45 deletions
diff --git a/swagger.json b/swagger.json index abdbbf0dc..ae273ce5e 100644 --- a/swagger.json +++ b/swagger.json @@ -325,12 +325,7 @@ }, "/permissions/devices": { "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], + "summary": "Link a Device to a User", "parameters": [ { "name": "body", @@ -344,20 +339,17 @@ "responses": { "200": { "description": "OK", - "headers": {}, "schema": { "$ref": "#/definitions/DevicePermission" } + }, + "400": { + "description": "No permission" } } }, "delete": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], + "summary": "Remove a Device from a User", "parameters": [ { "name": "body", @@ -370,20 +362,14 @@ ], "responses": { "204": { - "description": "No Content", - "headers": {} + "description": "No Content" } } } }, "/permissions/groups": { "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], + "summary": "Link a Group to a User", "parameters": [ { "name": "body", @@ -397,7 +383,6 @@ "responses": { "200": { "description": "OK", - "headers": {}, "schema": { "$ref": "#/definitions/GroupPermission" } @@ -405,12 +390,7 @@ } }, "delete": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], + "summary": "Remove a Group from a User", "parameters": [ { "name": "body", @@ -423,20 +403,14 @@ ], "responses": { "204": { - "description": "No Content", - "headers": {} + "description": "No Content" } } } }, "/permissions/geofences": { "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], + "summary": "Link a Geofence to a User", "parameters": [ { "name": "body", @@ -450,7 +424,6 @@ "responses": { "200": { "description": "OK", - "headers": {}, "schema": { "$ref": "#/definitions/GeofencePermission" } @@ -458,12 +431,7 @@ } }, "delete": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], + "summary": "Remove a Geofence from a User", "parameters": [ { "name": "body", @@ -476,8 +444,7 @@ ], "responses": { "204": { - "description": "No Content", - "headers": {} + "description": "No Content" } } } |