diff options
Diffstat (limited to 'routers/api/v1/swagger')
-rw-r--r-- | routers/api/v1/swagger/options.go | 3 | ||||
-rw-r--r-- | routers/api/v1/swagger/repo.go | 14 |
2 files changed, 17 insertions, 0 deletions
diff --git a/routers/api/v1/swagger/options.go b/routers/api/v1/swagger/options.go index 5aaee8d6ea..038f79005f 100644 --- a/routers/api/v1/swagger/options.go +++ b/routers/api/v1/swagger/options.go @@ -29,6 +29,9 @@ type swaggerParameterBodies struct { EditHookOption api.EditHookOption // in:body + EditGitHookOption api.EditGitHookOption + + // in:body CreateIssueOption api.CreateIssueOption // in:body EditIssueOption api.EditIssueOption diff --git a/routers/api/v1/swagger/repo.go b/routers/api/v1/swagger/repo.go index 0422d3fa10..f671037795 100644 --- a/routers/api/v1/swagger/repo.go +++ b/routers/api/v1/swagger/repo.go @@ -71,6 +71,20 @@ type swaggerResponseHookList struct { Body []api.Hook `json:"body"` } +// GitHook +// swagger:response GitHook +type swaggerResponseGitHook struct { + // in:body + Body api.GitHook `json:"body"` +} + +// GitHookList +// swagger:response GitHookList +type swaggerResponseGitHookList struct { + // in:body + Body []api.GitHook `json:"body"` +} + // Release // swagger:response Release type swaggerResponseRelease struct { |