Skip to content

Commit 92dfbad

Browse files
author
Gusted
authored
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
1 parent 06e4687 commit 92dfbad

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

routers/api/v1/repo/file.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func GetRawFile(ctx *context.APIContext) {
5353
// required: false
5454
// responses:
5555
// 200:
56-
// description: success
56+
// description: Returns raw file content.
5757
// "404":
5858
// "$ref": "#/responses/notFound"
5959

templates/swagger/v1_json.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -8628,7 +8628,7 @@
86288628
],
86298629
"responses": {
86308630
"200": {
8631-
"description": "success"
8631+
"description": "Returns raw file content."
86328632
},
86338633
"404": {
86348634
"$ref": "#/responses/notFound"

0 commit comments

Comments
 (0)