summaryrefslogtreecommitdiffstats
path: root/routers/api/v1/swagger
diff options
context:
space:
mode:
authorRichard Mahn <richmahn@users.noreply.github.com>2019-06-29 22:51:10 +0200
committertechknowlogick <techknowlogick@gitea.io>2019-06-29 22:51:10 +0200
commitcd96dee9822c8b744526ba862fd8b5ec0e2c30ff (patch)
treed7bbf2f2b7adf80b17f3ab3971ae49bae7b010c4 /routers/api/v1/swagger
parent[skip ci] Updated translations via Crowdin (diff)
downloadforgejo-cd96dee9822c8b744526ba862fd8b5ec0e2c30ff.tar.xz
forgejo-cd96dee9822c8b744526ba862fd8b5ec0e2c30ff.zip
Fixes #7292 - API File Contents bug (#7301)
Diffstat (limited to 'routers/api/v1/swagger')
-rw-r--r--routers/api/v1/swagger/repo.go15
1 files changed, 11 insertions, 4 deletions
diff --git a/routers/api/v1/swagger/repo.go b/routers/api/v1/swagger/repo.go
index 25354b3d66..2cab5b0ed4 100644
--- a/routers/api/v1/swagger/repo.go
+++ b/routers/api/v1/swagger/repo.go
@@ -197,11 +197,18 @@ type swaggerFileResponse struct {
Body api.FileResponse `json:"body"`
}
-// FileContentResponse
-// swagger:response FileContentResponse
-type swaggerFileContentResponse struct {
+// ContentsResponse
+// swagger:response ContentsResponse
+type swaggerContentsResponse struct {
//in: body
- Body api.FileContentResponse `json:"body"`
+ Body api.ContentsResponse `json:"body"`
+}
+
+// ContentsListResponse
+// swagger:response ContentsListResponse
+type swaggerContentsListResponse struct {
+ // in:body
+ Body []api.ContentsResponse `json:"body"`
}
// FileDeleteResponse