From 39298a656a3f75d390340a89d795b59b6bca4b10 Mon Sep 17 00:00:00 2001 From: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com> Date: Tue, 28 May 2024 01:12:54 +0300 Subject: [PATCH] Swagger: sync specs with enterprise (#88355) --- public/api-enterprise-spec.json | 37 +++++++++++++++++++++++++++++++++ public/api-merged.json | 34 ++++++++++++++++++++++++++++++ public/openapi3.json | 36 ++++++++++++++++++++++++++++++++ 3 files changed, 107 insertions(+) diff --git a/public/api-enterprise-spec.json b/public/api-enterprise-spec.json index feff3822aba..542bd383f9e 100644 --- a/public/api-enterprise-spec.json +++ b/public/api-enterprise-spec.json @@ -760,6 +760,43 @@ } } }, + "/datasources/uid/{uid}/lbac/teams": { + "put": { + "tags": [ + "enterprise" + ], + "summary": "Updates LBAC rules for a team.", + "operationId": "updateTeamLBACRulesApi", + "parameters": [ + { + "type": "string", + "name": "uid", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "$ref": "#/responses/okResponse" + }, + "400": { + "$ref": "#/responses/badRequestError" + }, + "401": { + "$ref": "#/responses/unauthorisedError" + }, + "403": { + "$ref": "#/responses/forbiddenError" + }, + "404": { + "$ref": "#/responses/notFoundError" + }, + "500": { + "$ref": "#/responses/internalServerError" + } + } + } + }, "/datasources/{dataSourceUID}/cache": { "get": { "description": "get cache config for a single data source", diff --git a/public/api-merged.json b/public/api-merged.json index 252702e244b..dea0a108fd2 100644 --- a/public/api-merged.json +++ b/public/api-merged.json @@ -4315,6 +4315,40 @@ } } }, + "/datasources/uid/{uid}/lbac/teams": { + "get": { + "summary": "Retrieves LBAC rules for a team.", + "operationId": "getTeamLBACRulesApiResponse", + "parameters": [ + { + "type": "string", + "name": "uid", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "$ref": "#/responses/okResponse" + }, + "400": { + "$ref": "#/responses/badRequestError" + }, + "401": { + "$ref": "#/responses/unauthorisedError" + }, + "403": { + "$ref": "#/responses/forbiddenError" + }, + "404": { + "$ref": "#/responses/notFoundError" + }, + "500": { + "$ref": "#/responses/internalServerError" + } + } + } + }, "/datasources/uid/{uid}/resources/{datasource_proxy_route}": { "get": { "tags": [ diff --git a/public/openapi3.json b/public/openapi3.json index 07b2eb62805..379292512af 100644 --- a/public/openapi3.json +++ b/public/openapi3.json @@ -17143,6 +17143,42 @@ ] } }, + "/datasources/uid/{uid}/lbac/teams": { + "get": { + "operationId": "getTeamLBACRulesApiResponse", + "parameters": [ + { + "in": "path", + "name": "uid", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/okResponse" + }, + "400": { + "$ref": "#/components/responses/badRequestError" + }, + "401": { + "$ref": "#/components/responses/unauthorisedError" + }, + "403": { + "$ref": "#/components/responses/forbiddenError" + }, + "404": { + "$ref": "#/components/responses/notFoundError" + }, + "500": { + "$ref": "#/components/responses/internalServerError" + } + }, + "summary": "Retrieves LBAC rules for a team." + } + }, "/datasources/uid/{uid}/resources/{datasource_proxy_route}": { "get": { "operationId": "callDatasourceResourceWithUID",