[Docs] Missing 404 swagger response docs for /admin/users/{username} #11312

Closed
opened 2025-11-02 09:34:05 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @lonix1 on GitHub (Jul 24, 2023).

Originally assigned to: @CaiCandong on GitHub.

Description

The swagger endpoint /admin/users/{username} is missing the response 404.

When the account does not exist then the API returns 404 - but that is not shown in the swagger docs.

Gitea Version

1.21.0+dev-354-g24c3bb95a

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

n/a

Screenshots

No response

Git Version

n/a

Operating System

n/a

How are you running Gitea?

n/a

Database

None

Originally created by @lonix1 on GitHub (Jul 24, 2023). Originally assigned to: @CaiCandong on GitHub. ### Description The swagger [endpoint](https://try.gitea.io/api/swagger#/admin/adminDeleteUser) `/admin/users/{username}` is missing the response `404`. When the account does not exist then the API returns 404 - but that is not shown in the swagger docs. ### Gitea Version 1.21.0+dev-354-g24c3bb95a ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist n/a ### Screenshots _No response_ ### Git Version n/a ### Operating System n/a ### How are you running Gitea? n/a ### Database None
GiteaMirror added the type/docstype/bugmodifies/api labels 2025-11-02 09:34:05 -06:00
Author
Owner

@CaiCandong commented on GitHub (Jul 24, 2023):

I was able to reproduce the problem, and I'm going to propose a PR to fix swagger's documentation

@CaiCandong commented on GitHub (Jul 24, 2023): I was able to reproduce the problem, and I'm going to propose a PR to fix swagger's documentation
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#11312