From 6b0c2e9e35e716173ef89979c1590e40d431fe57 Mon Sep 17 00:00:00 2001
From: Lunny Xiao <xiaolunwen@gmail.com>
Date: Fri, 25 Jan 2019 15:10:50 +0800
Subject: [PATCH] update swagger for release API pagination (#5841)

---
 routers/api/v1/repo/release.go |  8 ++++++++
 templates/swagger/v1_json.tmpl | 12 ++++++++++++
 2 files changed, 20 insertions(+)

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": {