Skip to content

Commit c23f4b8

Browse files
committed
update swagger doc
1 parent bc14c5d commit c23f4b8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

routers/api/v1/repo/file.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -990,7 +990,7 @@ func GetFileContentsGet(ctx *context.APIContext) {
990990
// swagger:operation GET /repos/{owner}/{repo}/file-contents repository repoGetFileContents
991991
// ---
992992
// summary: Get the metadata and contents of requested files
993-
// description: See the POST method. This GET method supports to use JSON encoded request body in parameter.
993+
// description: See the POST method. This GET method supports to use JSON encoded request body in query parameter.
994994
// produces:
995995
// - application/json
996996
// parameters:
@@ -1011,7 +1011,7 @@ func GetFileContentsGet(ctx *context.APIContext) {
10111011
// required: false
10121012
// - name: body
10131013
// in: query
1014-
// description: "The JSON encoded body (see the POST request): {files: [\"filename1\", \"filename2\"]}"
1014+
// description: "The JSON encoded body (see the POST request): {\"files\": [\"filename1\", \"filename2\"]}"
10151015
// type: string
10161016
// required: true
10171017
// responses:

templates/swagger/v1_json.tmpl

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)