1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-12-30 10:11:23 +02:00

Fix swagger response code (#2119)

Closes #2118
This commit is contained in:
qwerty287 2023-08-05 19:44:49 +02:00 committed by GitHub
parent fa747aa9ba
commit 4ad3968ff1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 9 deletions

View File

@ -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"
}
}
},

View File

@ -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 <personal access token>)
// @Param secret path string true "the secret's name"

View File

@ -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 <personal access token>)
// @Param org_id path string true "the org's id"

View File

@ -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 <personal access token>)
// @Param repo_id path int true "the repository id"