summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGusted <williamzijl7@hotmail.com>2022-04-28 14:57:56 +0000
committerGitHub <noreply@github.com>2022-04-28 09:57:56 -0500
commit92dfbada3793fc2be23d38783d6842eac9825f58 (patch)
tree5cfc60cde1d257caf1c97b6db5591f96be175386
parent06e4687cecaed41500b653e5b8685f48b8b18310 (diff)
downloadgitea-92dfbada3793fc2be23d38783d6842eac9825f58.tar.gz
gitea-92dfbada3793fc2be23d38783d6842eac9825f58.zip
Better describe what `/repos/{owner}/{repo}/raw/{filepath}` returns on 200 (#19542)
- Set on the description that it returns the raw file content. - Resolves #19514
-rw-r--r--routers/api/v1/repo/file.go2
-rw-r--r--templates/swagger/v1_json.tmpl2
2 files changed, 2 insertions, 2 deletions
diff --git a/routers/api/v1/repo/file.go b/routers/api/v1/repo/file.go
index ed51f6f4df..d907e770ae 100644
--- a/routers/api/v1/repo/file.go
+++ b/routers/api/v1/repo/file.go
@@ -53,7 +53,7 @@ func GetRawFile(ctx *context.APIContext) {
// required: false
// responses:
// 200:
- // description: success
+ // description: Returns raw file content.
// "404":
// "$ref": "#/responses/notFound"
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl
index 0374a53a65..ea03380d43 100644
--- a/templates/swagger/v1_json.tmpl
+++ b/templates/swagger/v1_json.tmpl
@@ -8628,7 +8628,7 @@
],
"responses": {
"200": {
- "description": "success"
+ "description": "Returns raw file content."
},
"404": {
"$ref": "#/responses/notFound"