mirror of
https://github.com/go-gitea/gitea.git
synced 2026-09-25 05:33:05 +02:00
add appropriate swagger definitions
This commit is contained in:
@@ -230,4 +230,13 @@ type swaggerParameterBodies struct {
|
||||
|
||||
// in:body
|
||||
LockIssueOption api.LockIssueOption
|
||||
|
||||
// in:body
|
||||
NewGroupOption api.NewGroupOption
|
||||
|
||||
// in:body
|
||||
EditGroupOption api.EditGroupOption
|
||||
|
||||
// in:body
|
||||
MoveGroupOption api.MoveGroupOption
|
||||
}
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
package swagger
|
||||
|
||||
import api "code.gitea.io/gitea/modules/structs"
|
||||
|
||||
// Group
|
||||
// swagger:response Group
|
||||
type swaggerResponseGroup struct {
|
||||
// in:body
|
||||
Body api.Group `json:"body"`
|
||||
}
|
||||
|
||||
// GroupList
|
||||
// swagger:response GroupList
|
||||
type swaggerResponseGroupList struct {
|
||||
// in:body
|
||||
Body []api.Group `json:"body"`
|
||||
}
|
||||
Reference in New Issue
Block a user