fix Missing 404 swagger response docs for /admin/users/{username} (#26086) (#26089)

Backport #26086 by @CaiCandong

close #26079

Co-authored-by: caicandong <50507092+CaiCandong@users.noreply.github.com>
pull/26098/head
Giteabot 1 year ago committed by GitHub
parent 8d9193680d
commit 59713541b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      routers/api/v1/admin/user.go
  2. 3
      templates/swagger/v1_json.tmpl

@ -312,6 +312,8 @@ func DeleteUser(ctx *context.APIContext) {
// "$ref": "#/responses/empty"
// "403":
// "$ref": "#/responses/forbidden"
// "404":
// "$ref": "#/responses/notFound"
// "422":
// "$ref": "#/responses/validationError"

@ -620,6 +620,9 @@
"403": {
"$ref": "#/responses/forbidden"
},
"404": {
"$ref": "#/responses/notFound"
},
"422": {
"$ref": "#/responses/validationError"
}

Loading…
Cancel
Save