Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
lonix1 opened this issue Jul 24, 2023 · 1 comment · Fixed by #26086
Closed

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

lonix1 opened this issue Jul 24, 2023 · 1 comment · Fixed by #26086
Assignees
Labels
modifies/api This PR adds API routes or modifies them type/bug type/docs This PR mainly updates/creates documentation

Comments

@lonix1
Copy link
Contributor

lonix1 commented Jul 24, 2023

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

@techknowlogick techknowlogick added type/docs This PR mainly updates/creates documentation modifies/api This PR adds API routes or modifies them labels Jul 24, 2023
@CaiCandong
Copy link
Member

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
modifies/api This PR adds API routes or modifies them type/bug type/docs This PR mainly updates/creates documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants