aboutsummaryrefslogtreecommitdiffstats
path: root/routers/api/v1/swagger/repo.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/api/v1/swagger/repo.go')
-rw-r--r--routers/api/v1/swagger/repo.go12
1 files changed, 12 insertions, 0 deletions
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"`
+}