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

close #26079
pull/26087/head^2
caicandong 2 years ago committed by GitHub
parent cdd3d4b8d8
commit 4211efe8b7
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