aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--routers/api/v1/repo/release.go8
-rw-r--r--templates/swagger/v1_json.tmpl12
2 files changed, 20 insertions, 0 deletions
diff --git a/routers/api/v1/repo/release.go b/routers/api/v1/repo/release.go
index 84cb871b76..3c51e452f2 100644
--- a/routers/api/v1/repo/release.go
+++ b/routers/api/v1/repo/release.go
@@ -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"
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl
index c3475abace..6989a05073 100644
--- a/templates/swagger/v1_json.tmpl
+++ b/templates/swagger/v1_json.tmpl
@@ -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": {