mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-20 04:29:29 +02:00
Improve Swagger documentation for user endpoints
(cherry picked from commit b074e08f34
)
This commit is contained in:
parent
a167d7b91c
commit
72cbefe63e
23 changed files with 703 additions and 2 deletions
|
@ -99,6 +99,17 @@ type swaggerAPIInvalidTopicsError struct {
|
|||
// swagger:response empty
|
||||
type APIEmpty struct{}
|
||||
|
||||
type APIUnauthorizedError struct {
|
||||
APIError
|
||||
}
|
||||
|
||||
// APIUnauthorizedError is a unauthorized error response
|
||||
// swagger:response unauthorized
|
||||
type swaggerAPUnauthorizedError struct {
|
||||
// in:body
|
||||
Body APIUnauthorizedError `json:"body"`
|
||||
}
|
||||
|
||||
type APIForbiddenError struct {
|
||||
APIError
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue