Skip to content

Commit

Permalink
Better describe what /repos/{owner}/{repo}/raw/{filepath} returns o…
Browse files Browse the repository at this point in the history
…n 200 (go-gitea#19542)

- Set on the description that it returns the raw file content.
- Resolves go-gitea#19514
  • Loading branch information
Gusted authored and AbdulrhmnGhanem committed Aug 23, 2022
1 parent 50ea513 commit 2ecb495
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion routers/api/v1/repo/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func GetRawFile(ctx *context.APIContext) {
// required: false
// responses:
// 200:
// description: success
// description: Returns raw file content.
// "404":
// "$ref": "#/responses/notFound"

Expand Down
2 changes: 1 addition & 1 deletion templates/swagger/v1_json.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -8628,7 +8628,7 @@
],
"responses": {
"200": {
"description": "success"
"description": "Returns raw file content."
},
"404": {
"$ref": "#/responses/notFound"
Expand Down

0 comments on commit 2ecb495

Please sign in to comment.