Browse Source
Add better Swagger description and a example for GetArchive (#12743)
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
for-closed-social
6543
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
2 deletions
-
routers/api/v1/repo/file.go
-
templates/swagger/v1_json.tmpl
|
@ -87,7 +87,7 @@ func GetArchive(ctx *context.APIContext) { |
|
|
// required: true
|
|
|
// required: true
|
|
|
// - name: archive
|
|
|
// - name: archive
|
|
|
// in: path
|
|
|
// in: path
|
|
|
// description: archive to download, consisting of a git reference and archive
|
|
|
|
|
|
|
|
|
// description: the git reference for download with attached archive format (e.g. master.zip)
|
|
|
// type: string
|
|
|
// type: string
|
|
|
// required: true
|
|
|
// required: true
|
|
|
// responses:
|
|
|
// responses:
|
|
|
|
@ -2075,7 +2075,7 @@ |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
"type": "string", |
|
|
"type": "string", |
|
|
"description": "archive to download, consisting of a git reference and archive", |
|
|
|
|
|
|
|
|
"description": "the git reference for download with attached archive format (e.g. master.zip)", |
|
|
"name": "archive", |
|
|
"name": "archive", |
|
|
"in": "path", |
|
|
"in": "path", |
|
|
"required": true |
|
|
"required": true |
|
|