Browse Source

update swagger for release API pagination (#5841)

for-closed-social
Lunny Xiao 5 years ago
committed by Lauris BH
parent
commit
6b0c2e9e35
2 changed files with 20 additions and 0 deletions
  1. +8
    -0
      routers/api/v1/repo/release.go
  2. +12
    -0
      templates/swagger/v1_json.tmpl

+ 8
- 0
routers/api/v1/repo/release.go View File

@ -88,6 +88,14 @@ func ListReleases(ctx *context.APIContext) {
// description: name of the repo
// type: string
// required: true
// - name: page
// in: query
// description: page wants to load
// type: integer
// - name: per_page
// in: query
// description: items count every page wants to load
// type: integer
// responses:
// "200":
// "$ref": "#/responses/ReleaseList"

+ 12
- 0
templates/swagger/v1_json.tmpl View File

@ -3834,6 +3834,18 @@
"name": "repo",
"in": "path",
"required": true
},
{
"type": "integer",
"description": "page wants to load",
"name": "page",
"in": "query"
},
{
"type": "integer",
"description": "items count every page wants to load",
"name": "per_page",
"in": "query"
}
],
"responses": {

Loading…
Cancel
Save