diff options
author | Sun Howwrongbum <sun@adrenosapient.com> | 2017-02-12 04:53:15 +0530 |
---|---|---|
committer | Sun Howwrongbum <sun@adrenosapient.com> | 2017-02-12 04:53:15 +0530 |
commit | 9a5b0f0f8cf6ace7ef642eacfed848dbfb11d369 (patch) | |
tree | e4fc9fee22f5a6f67d153fa01a6d8d9947bd6bc2 /swagger.json | |
parent | e3378e2c70bf030cbf0124ff8bf5e5ae87ffc965 (diff) | |
download | trackermap-server-9a5b0f0f8cf6ace7ef642eacfed848dbfb11d369.tar.gz trackermap-server-9a5b0f0f8cf6ace7ef642eacfed848dbfb11d369.tar.bz2 trackermap-server-9a5b0f0f8cf6ace7ef642eacfed848dbfb11d369.zip |
[swagger] Add /permissions/users and UserPermission definition
Diffstat (limited to 'swagger.json')
-rw-r--r-- | swagger.json | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/swagger.json b/swagger.json index 41d15fd31..58dcb9cfd 100644 --- a/swagger.json +++ b/swagger.json @@ -415,6 +415,37 @@ } } }, + "/permissions/users": { + "post": { + "summary": "Link a User to a manager User", + "parameters": [ + { + "$ref": "#/parameters/UserPermission" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/UserPermission" + } + } + } + }, + "delete": { + "summary": "Remove a User from a manager User", + "parameters": [ + { + "$ref": "#/parameters/UserPermission" + } + ], + "responses": { + "204": { + "description": "No Content" + } + } + } + }, "/positions": { "get": { "summary" : "Fetches a list of Positions", @@ -1762,6 +1793,14 @@ "$ref": "#/definitions/CalendarPermission" } }, + "UserPermission": { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/UserPermission" + } + }, "User": { "name": "body", "in": "body", |