mirror of
https://github.com/go-gitea/gitea
synced 2025-07-15 23:17:19 +00:00
docs: create swagger api documentation for endpoints
This commit is contained in:
@@ -21,6 +21,7 @@ type Project struct {
|
||||
ClosedDateUnix int64 `json:"closed_date_unix"`
|
||||
}
|
||||
|
||||
// CreateProjectOption options for creating a project
|
||||
type CreateProjectOption struct {
|
||||
// required:true
|
||||
Title string `json:"title" binding:"Required;MaxSize(100)"`
|
||||
@@ -28,3 +29,18 @@ type CreateProjectOption struct {
|
||||
TemplateType uint8 `json:"template_type"`
|
||||
CardType uint8 `json:"card_type"`
|
||||
}
|
||||
|
||||
// EditProjectOption options for editing a project
|
||||
type EditProjectOption struct {
|
||||
Title string `json:"title" binding:"MaxSize(100)"`
|
||||
Content string `json:"content"`
|
||||
CardType uint8 `json:"card_type"`
|
||||
}
|
||||
|
||||
// MoveColumnsOption options for moving columns
|
||||
type MovedColumnsOption struct {
|
||||
Columns []struct {
|
||||
ColumnID int64 `json:"columnID"`
|
||||
Sorting int64 `json:"sorting"`
|
||||
} `json:"columns"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user