diff --git a/pkg/services/ssosettings/api/api.go b/pkg/services/ssosettings/api/api.go index 9794b08468a..31e68294592 100644 --- a/pkg/services/ssosettings/api/api.go +++ b/pkg/services/ssosettings/api/api.go @@ -117,7 +117,7 @@ func (api *Api) getAuthorizedList(ctx context.Context, identity identity.Request // You need to have a permission with action `settings:read` with scope `settings:auth.:*`. // // Responses: -// 200: okResponse +// 200: getSSOSettingsResponse // 400: badRequestError // 401: unauthorisedError // 403: forbiddenError @@ -235,3 +235,9 @@ type RemoveProviderSettingsParams struct { // required:true Provider string `json:"key"` } + +// swagger:response getSSOSettingsResponse +type GetSSOSettingsResponse struct { + // in: body + Body models.SSOSettings `json:"body"` +} diff --git a/public/api-merged.json b/public/api-merged.json index 80265386248..63c4e95df12 100644 --- a/public/api-merged.json +++ b/public/api-merged.json @@ -11401,7 +11401,7 @@ ], "responses": { "200": { - "$ref": "#/responses/okResponse" + "$ref": "#/responses/getSSOSettingsResponse" }, "400": { "$ref": "#/responses/badRequestError" @@ -22931,6 +22931,12 @@ "$ref": "#/definitions/RoleDTO" } }, + "getSSOSettingsResponse": { + "description": "(empty)", + "schema": { + "$ref": "#/definitions/SSOSettings" + } + }, "getSharingOptionsResponse": { "description": "(empty)", "schema": { diff --git a/public/openapi3.json b/public/openapi3.json index cdf54d231db..c42dfd3a8b1 100644 --- a/public/openapi3.json +++ b/public/openapi3.json @@ -1169,6 +1169,16 @@ }, "description": "(empty)" }, + "getSSOSettingsResponse": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SSOSettings" + } + } + }, + "description": "(empty)" + }, "getSharingOptionsResponse": { "content": { "application/json": { @@ -25087,7 +25097,7 @@ ], "responses": { "200": { - "$ref": "#/components/responses/okResponse" + "$ref": "#/components/responses/getSSOSettingsResponse" }, "400": { "$ref": "#/components/responses/badRequestError"