diff --git a/public/swagger/swagger.v1.json b/public/swagger/swagger.v1.json index ae7ea0d8..fc69a782 100644 --- a/public/swagger/swagger.v1.json +++ b/public/swagger/swagger.v1.json @@ -258,6 +258,57 @@ } }, "/lists/{listID}/teams/{teamID}": { + "post": { + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "sharing" + ], + "summary": "Updates a teams access to a list", + "operationId": "updateTeamAccessToList", + "parameters": [ + { + "type": "string", + "description": "ID of the list to use", + "name": "listID", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "ID of the team to use", + "name": "teamID", + "in": "path", + "required": true + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/TeamList" + } + } + ], + "responses": { + "200": { + "$ref": "#/responses/TeamList" + }, + "400": { + "$ref": "#/responses/Message" + }, + "403": { + "$ref": "#/responses/Message" + }, + "500": { + "$ref": "#/responses/Message" + } + } + }, "delete": { "consumes": [ "application/json" @@ -375,6 +426,57 @@ } }, "/lists/{listID}/users/{userID}": { + "post": { + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "sharing" + ], + "summary": "Updates a users access to a list", + "operationId": "updateUserAccessToList", + "parameters": [ + { + "type": "string", + "description": "ID of the list to use", + "name": "listID", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "ID of the user to use", + "name": "userID", + "in": "path", + "required": true + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/UserList" + } + } + ], + "responses": { + "200": { + "$ref": "#/responses/UserList" + }, + "400": { + "$ref": "#/responses/Message" + }, + "403": { + "$ref": "#/responses/Message" + }, + "500": { + "$ref": "#/responses/Message" + } + } + }, "delete": { "consumes": [ "application/json" @@ -786,6 +888,57 @@ } }, "/namespaces/{namespaceID}/teams/{teamID}": { + "post": { + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "sharing" + ], + "summary": "Updates a teams access to a namespace", + "operationId": "updateTeamAccessToNamespace", + "parameters": [ + { + "type": "string", + "description": "ID of the namespace to use", + "name": "namespaceID", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "ID of the team to use", + "name": "teamID", + "in": "path", + "required": true + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/TeamNamespace" + } + } + ], + "responses": { + "200": { + "$ref": "#/responses/TeamNamespace" + }, + "400": { + "$ref": "#/responses/Message" + }, + "403": { + "$ref": "#/responses/Message" + }, + "500": { + "$ref": "#/responses/Message" + } + } + }, "delete": { "consumes": [ "application/json" @@ -910,6 +1063,57 @@ } }, "/namespaces/{namespaceID}/users/{userID}": { + "post": { + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "sharing" + ], + "summary": "Updates a users access to a namespace", + "operationId": "updateUserAccessToNamespace", + "parameters": [ + { + "type": "string", + "description": "ID of the namespace to use", + "name": "namespaceID", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "ID of the user to use", + "name": "userID", + "in": "path", + "required": true + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/NamespaceUser" + } + } + ], + "responses": { + "200": { + "$ref": "#/responses/NamespaceUser" + }, + "400": { + "$ref": "#/responses/Message" + }, + "403": { + "$ref": "#/responses/Message" + }, + "500": { + "$ref": "#/responses/Message" + } + } + }, "delete": { "consumes": [ "application/json" diff --git a/routes/api/v1/swaggerdocs.go b/routes/api/v1/swaggerdocs.go index 0cc16fbe..31914c08 100644 --- a/routes/api/v1/swaggerdocs.go +++ b/routes/api/v1/swaggerdocs.go @@ -781,3 +781,135 @@ package v1 // "$ref": "#/responses/Message" // "500": // "$ref": "#/responses/Message" + +// swagger:operation POST /namespaces/{namespaceID}/users/{userID} sharing updateUserAccessToNamespace +// --- +// summary: Updates a users access to a namespace +// consumes: +// - application/json +// produces: +// - application/json +// parameters: +// - name: namespaceID +// in: path +// description: ID of the namespace to use +// type: string +// required: true +// - name: userID +// in: path +// description: ID of the user to use +// type: string +// required: true +// - name: body +// in: body +// required: true +// schema: +// "$ref": "#/definitions/NamespaceUser" +// responses: +// "200": +// "$ref": "#/responses/NamespaceUser" +// "400": +// "$ref": "#/responses/Message" +// "403": +// "$ref": "#/responses/Message" +// "500": +// "$ref": "#/responses/Message" + +// swagger:operation POST /namespaces/{namespaceID}/teams/{teamID} sharing updateTeamAccessToNamespace +// --- +// summary: Updates a teams access to a namespace +// consumes: +// - application/json +// produces: +// - application/json +// parameters: +// - name: namespaceID +// in: path +// description: ID of the namespace to use +// type: string +// required: true +// - name: teamID +// in: path +// description: ID of the team to use +// type: string +// required: true +// - name: body +// in: body +// required: true +// schema: +// "$ref": "#/definitions/TeamNamespace" +// responses: +// "200": +// "$ref": "#/responses/TeamNamespace" +// "400": +// "$ref": "#/responses/Message" +// "403": +// "$ref": "#/responses/Message" +// "500": +// "$ref": "#/responses/Message" + +// swagger:operation POST /lists/{listID}/users/{userID} sharing updateUserAccessToList +// --- +// summary: Updates a users access to a list +// consumes: +// - application/json +// produces: +// - application/json +// parameters: +// - name: listID +// in: path +// description: ID of the list to use +// type: string +// required: true +// - name: userID +// in: path +// description: ID of the user to use +// type: string +// required: true +// - name: body +// in: body +// required: true +// schema: +// "$ref": "#/definitions/UserList" +// responses: +// "200": +// "$ref": "#/responses/UserList" +// "400": +// "$ref": "#/responses/Message" +// "403": +// "$ref": "#/responses/Message" +// "500": +// "$ref": "#/responses/Message" + +// swagger:operation POST /lists/{listID}/teams/{teamID} sharing updateTeamAccessToList +// --- +// summary: Updates a teams access to a list +// consumes: +// - application/json +// produces: +// - application/json +// parameters: +// - name: listID +// in: path +// description: ID of the list to use +// type: string +// required: true +// - name: teamID +// in: path +// description: ID of the team to use +// type: string +// required: true +// - name: body +// in: body +// required: true +// schema: +// "$ref": "#/definitions/TeamList" +// responses: +// "200": +// "$ref": "#/responses/TeamList" +// "400": +// "$ref": "#/responses/Message" +// "403": +// "$ref": "#/responses/Message" +// "500": +// "$ref": "#/responses/Message"