diff --git a/cmd/server/docs/docs.go b/cmd/server/docs/docs.go index 905fc780b..dba6cad2c 100644 --- a/cmd/server/docs/docs.go +++ b/cmd/server/docs/docs.go @@ -1025,8 +1025,8 @@ const docTemplate = `{ } ], "responses": { - "200": { - "description": "OK" + "204": { + "description": "No Content" } } }, @@ -2844,8 +2844,8 @@ const docTemplate = `{ } ], "responses": { - "200": { - "description": "OK" + "204": { + "description": "No Content" } } }, @@ -3043,8 +3043,8 @@ const docTemplate = `{ } ], "responses": { - "200": { - "description": "OK" + "204": { + "description": "No Content" } } }, diff --git a/server/api/global_secret.go b/server/api/global_secret.go index 0d78eb06e..77f1e212a 100644 --- a/server/api/global_secret.go +++ b/server/api/global_secret.go @@ -152,7 +152,7 @@ func PatchGlobalSecret(c *gin.Context) { // @Summary Delete a global secret by name // @Router /secrets/{secret} [delete] // @Produce plain -// @Success 200 +// @Success 204 // @Tags Secrets // @Param Authorization header string true "Insert your personal access token" default(Bearer ) // @Param secret path string true "the secret's name" diff --git a/server/api/org_secret.go b/server/api/org_secret.go index 4cc13bbd6..dd7564403 100644 --- a/server/api/org_secret.go +++ b/server/api/org_secret.go @@ -182,7 +182,7 @@ func PatchOrgSecret(c *gin.Context) { // @Summary Delete the named secret from an organization // @Router /orgs/{org_id}/secrets/{secret} [delete] // @Produce plain -// @Success 200 +// @Success 204 // @Tags Organization secrets // @Param Authorization header string true "Insert your personal access token" default(Bearer ) // @Param org_id path string true "the org's id" diff --git a/server/api/repo_secret.go b/server/api/repo_secret.go index eead56e50..72228d114 100644 --- a/server/api/repo_secret.go +++ b/server/api/repo_secret.go @@ -167,7 +167,7 @@ func GetSecretList(c *gin.Context) { // @Summary Delete a named secret // @Router /repos/{repo_id}/secrets/{secretName} [delete] // @Produce plain -// @Success 200 +// @Success 204 // @Tags Repository secrets // @Param Authorization header string true "Insert your personal access token" default(Bearer ) // @Param repo_id path int true "the repository id"