diff options
author | caicandong <50507092+CaiCandong@users.noreply.github.com> | 2023-07-24 10:48:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-24 10:48:44 +0200 |
commit | 4211efe8b7a0b38420da5c5d4f287a8d466aedc2 (patch) | |
tree | d715eeaf4e5aea6a9a76be2cf24c274a8b54be62 | |
parent | Allow the use of alternative net.Listener implementations by downstreams (#25... (diff) | |
download | forgejo-4211efe8b7a0b38420da5c5d4f287a8d466aedc2.tar.xz forgejo-4211efe8b7a0b38420da5c5d4f287a8d466aedc2.zip |
fix Missing 404 swagger response docs for /admin/users/{username} (#26086)
close #26079
-rw-r--r-- | routers/api/v1/admin/user.go | 2 | ||||
-rw-r--r-- | templates/swagger/v1_json.tmpl | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/routers/api/v1/admin/user.go b/routers/api/v1/admin/user.go index c3af5dc90a..4f1e9a3f53 100644 --- a/routers/api/v1/admin/user.go +++ b/routers/api/v1/admin/user.go @@ -312,6 +312,8 @@ func DeleteUser(ctx *context.APIContext) { // "$ref": "#/responses/empty" // "403": // "$ref": "#/responses/forbidden" + // "404": + // "$ref": "#/responses/notFound" // "422": // "$ref": "#/responses/validationError" diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index 7b3a616740..69874bdc75 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -620,6 +620,9 @@ "403": { "$ref": "#/responses/forbidden" }, + "404": { + "$ref": "#/responses/notFound" + }, "422": { "$ref": "#/responses/validationError" } |