forked from forgejo/forgejo
Add API for gitignore templates (#22783)
This implements the [Gitignores template API of GitHub](https://docs.github.com/en/rest/gitignore?apiVersion=2022-11-28) in Gitea
This commit is contained in:
parent
50133b02bd
commit
36a5d4c2f3
6 changed files with 207 additions and 0 deletions
|
@ -14,6 +14,20 @@ type swaggerResponseServerVersion struct {
|
|||
Body api.ServerVersion `json:"body"`
|
||||
}
|
||||
|
||||
// GitignoreTemplateList
|
||||
// swagger:response GitignoreTemplateList
|
||||
type swaggerResponseGitignoreTemplateList struct {
|
||||
// in:body
|
||||
Body []string `json:"body"`
|
||||
}
|
||||
|
||||
// GitignoreTemplateInfo
|
||||
// swagger:response GitignoreTemplateInfo
|
||||
type swaggerResponseGitignoreTemplateInfo struct {
|
||||
// in:body
|
||||
Body api.GitignoreTemplateInfo `json:"body"`
|
||||
}
|
||||
|
||||
// LicenseTemplateList
|
||||
// swagger:response LicenseTemplateList
|
||||
type swaggerResponseLicensesTemplateList struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue