add appropriate swagger definitions

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2026-04-02 20:00:53 -04:00
parent 4bf17e9b21
commit 52d17c410a
4 changed files with 405 additions and 5 deletions
+9
View File
@@ -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
}
+17
View File
@@ -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"`
}