diff options
Diffstat (limited to 'routers/api/v1/swagger')
-rw-r--r-- | routers/api/v1/swagger/options.go | 2 | ||||
-rw-r--r-- | routers/api/v1/swagger/repo.go | 12 |
2 files changed, 14 insertions, 0 deletions
diff --git a/routers/api/v1/swagger/options.go b/routers/api/v1/swagger/options.go index 31251eb3e2..3ea324186d 100644 --- a/routers/api/v1/swagger/options.go +++ b/routers/api/v1/swagger/options.go @@ -63,4 +63,6 @@ type swaggerParameterBodies struct { EditUserOption api.EditUserOption MigrateRepoForm auth.MigrateRepoForm + + EditAttachmentOptions api.EditAttachmentOptions } diff --git a/routers/api/v1/swagger/repo.go b/routers/api/v1/swagger/repo.go index 703f7d18dd..1f25691105 100644 --- a/routers/api/v1/swagger/repo.go +++ b/routers/api/v1/swagger/repo.go @@ -90,3 +90,15 @@ type swaggerResponseWatchInfo struct { type swaggerResponseSearchResults struct { Body api.SearchResults `json:"body"` } + +// swagger:response AttachmentList +type swaggerResponseAttachmentList struct { + //in: body + Body []api.Attachment `json:"body"` +} + +// swagger:response Attachment +type swaggerResponseAttachment struct { + //in: body + Body api.Attachment `json:"body"` +} |