From c219a19f9791c2b17b607b15061669236ce3726a Mon Sep 17 00:00:00 2001 From: Mihai Doarna Date: Wed, 3 Jan 2024 16:05:11 +0200 Subject: [PATCH] Auth: Add missing 404 status code from the SSO Settings delete endpoint (#79982) add missing 404 status code from sso settings delete endpoint --- pkg/services/ssosettings/api/api.go | 1 + public/api-merged.json | 3 +++ public/openapi3.json | 3 +++ 3 files changed, 7 insertions(+) diff --git a/pkg/services/ssosettings/api/api.go b/pkg/services/ssosettings/api/api.go index a7f911ca470..b01a47b3a4b 100644 --- a/pkg/services/ssosettings/api/api.go +++ b/pkg/services/ssosettings/api/api.go @@ -153,6 +153,7 @@ func (api *Api) updateProviderSettings(c *contextmodel.ReqContext) response.Resp // 400: badRequestError // 401: unauthorisedError // 403: forbiddenError +// 404: notFoundError // 500: internalServerError func (api *Api) removeProviderSettings(c *contextmodel.ReqContext) response.Response { key, ok := web.Params(c.Req)[":key"] diff --git a/public/api-merged.json b/public/api-merged.json index 997789bc407..908a148e68d 100644 --- a/public/api-merged.json +++ b/public/api-merged.json @@ -11086,6 +11086,9 @@ "403": { "$ref": "#/responses/forbiddenError" }, + "404": { + "$ref": "#/responses/notFoundError" + }, "500": { "$ref": "#/responses/internalServerError" } diff --git a/public/openapi3.json b/public/openapi3.json index e6329c603bf..2cc81e64fc4 100644 --- a/public/openapi3.json +++ b/public/openapi3.json @@ -24317,6 +24317,9 @@ "403": { "$ref": "#/components/responses/forbiddenError" }, + "404": { + "$ref": "#/components/responses/notFoundError" + }, "500": { "$ref": "#/components/responses/internalServerError" }