summaryrefslogtreecommitdiffstats
path: root/routers/api/v1
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-01-25 15:10:50 +0800
committerLauris BH <lauris@nix.lv>2019-01-25 09:10:50 +0200
commit6b0c2e9e35e716173ef89979c1590e40d431fe57 (patch)
tree6f951cdd5c0af4aa417714e99234560f5c1113e6 /routers/api/v1
parent892bfd0b19fb8c222abc4660c4f584ba0bf6972a (diff)
downloadgitea-6b0c2e9e35e716173ef89979c1590e40d431fe57.tar.gz
gitea-6b0c2e9e35e716173ef89979c1590e40d431fe57.zip
update swagger for release API pagination (#5841)
Diffstat (limited to 'routers/api/v1')
-rw-r--r--routers/api/v1/repo/release.go8
1 files changed, 8 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"