Skip to content

Commit

Permalink
Fix swagger response code (#2119)
Browse files Browse the repository at this point in the history
Closes #2118
  • Loading branch information
qwerty287 authored Aug 5, 2023
1 parent fa747aa commit 4ad3968
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions cmd/server/docs/docs.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion server/api/global_secret.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion server/api/org_secret.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion server/api/repo_secret.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 4ad3968

Please sign in to comment.