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
pull/18002/head^2
Gusted 3 years ago committed by GitHub
parent 06e4687cec
commit 92dfbada37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      routers/api/v1/repo/file.go
  2. 2
      templates/swagger/v1_json.tmpl

@ -53,7 +53,7 @@ func GetRawFile(ctx *context.APIContext) {
// required: false
// responses:
// 200:
// description: success
// description: Returns raw file content.
// "404":
// "$ref": "#/responses/notFound"

@ -8628,7 +8628,7 @@
],
"responses": {
"200": {
"description": "success"
"description": "Returns raw file content."
},
"404": {
"$ref": "#/responses/notFound"

Loading…
Cancel
Save