summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--public/swagger.v1.json12
-rw-r--r--routers/api/v1/repo/file.go9
2 files changed, 15 insertions, 6 deletions
diff --git a/public/swagger.v1.json b/public/swagger.v1.json
index 3027564db5..6595d96f00 100644
--- a/public/swagger.v1.json
+++ b/public/swagger.v1.json
@@ -1028,7 +1028,9 @@
}
],
"responses": {
- "200": {}
+ "200": {
+ "description": "success"
+ }
}
}
},
@@ -1338,7 +1340,9 @@
}
],
"responses": {
- "200": {}
+ "200": {
+ "description": "success"
+ }
}
}
},
@@ -3261,7 +3265,9 @@
}
],
"responses": {
- "200": {}
+ "200": {
+ "description": "success"
+ }
}
}
},
diff --git a/routers/api/v1/repo/file.go b/routers/api/v1/repo/file.go
index 306b65a328..a3c8309ac5 100644
--- a/routers/api/v1/repo/file.go
+++ b/routers/api/v1/repo/file.go
@@ -36,7 +36,8 @@ func GetRawFile(ctx *context.APIContext) {
// type: string
// required: true
// responses:
- // 200:
+ // 200:
+ // description: success
if !ctx.Repo.HasAccess() {
ctx.Status(404)
return
@@ -85,7 +86,8 @@ func GetArchive(ctx *context.APIContext) {
// type: string
// required: true
// responses:
- // 200:
+ // 200:
+ // description: success
repoPath := models.RepoPath(ctx.Params(":username"), ctx.Params(":reponame"))
gitRepo, err := git.OpenRepository(repoPath)
if err != nil {
@@ -121,7 +123,8 @@ func GetEditorconfig(ctx *context.APIContext) {
// type: string
// required: true
// responses:
- // 200:
+ // 200:
+ // description: success
ec, err := ctx.Repo.GetEditorconfig()
if err != nil {
if git.IsErrNotExist(err) {