diff options
author | 6543 <6543@obermui.de> | 2020-02-25 20:07:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-25 14:07:07 -0500 |
commit | 4427a936b4c7bd07908ccbe96104928dd29cf59d (patch) | |
tree | d5eb9406613c6262a44b21985cebf31cde2b5e5d /templates/swagger | |
parent | b098cc24c5d93ca96ff72faf3093f45c30c974f0 (diff) | |
download | gitea-4427a936b4c7bd07908ccbe96104928dd29cf59d.tar.gz gitea-4427a936b4c7bd07908ccbe96104928dd29cf59d.zip |
[API] enable paggination for ListRepoTags (#10454)
* enable paggination for repoTags
* precalculate first, cut slice second
* Apply suggestions from code review
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
Diffstat (limited to 'templates/swagger')
-rw-r--r-- | templates/swagger/v1_json.tmpl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index b52145a0a9..bac1f05710 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -7251,6 +7251,18 @@ "name": "repo", "in": "path", "required": true + }, + { + "type": "integer", + "description": "page number of results to return (1-based)", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "page size of results, default maximum page size is 50", + "name": "limit", + "in": "query" } ], "responses": { |