forked from NYANDEV/forgejo
update swagger for release API pagination (#5841)
This commit is contained in:
parent
892bfd0b19
commit
6b0c2e9e35
2 changed files with 20 additions and 0 deletions
|
@ -88,6 +88,14 @@ func ListReleases(ctx *context.APIContext) {
|
||||||
// description: name of the repo
|
// description: name of the repo
|
||||||
// type: string
|
// type: string
|
||||||
// required: true
|
// 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:
|
// responses:
|
||||||
// "200":
|
// "200":
|
||||||
// "$ref": "#/responses/ReleaseList"
|
// "$ref": "#/responses/ReleaseList"
|
||||||
|
|
|
@ -3834,6 +3834,18 @@
|
||||||
"name": "repo",
|
"name": "repo",
|
||||||
"in": "path",
|
"in": "path",
|
||||||
"required": true
|
"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": {
|
"responses": {
|
||||||
|
|
Loading…
Reference in a new issue