diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-08-05 02:33:36 +0800 |
---|---|---|
committer | techknowlogick <techknowlogick@gitea.io> | 2019-08-04 14:33:36 -0400 |
commit | 5b902e2368fdb67eda4ba033f7167fadf72e4350 (patch) | |
tree | 517c89ca14e749962d8c8b221a6ef5188d764d1d /templates | |
parent | 7b2a39c78bbda57cd76c5c01af4904bf6a709a7d (diff) | |
download | gitea-5b902e2368fdb67eda4ba033f7167fadf72e4350.tar.gz gitea-5b902e2368fdb67eda4ba033f7167fadf72e4350.zip |
add pagination for admin api get orgs and fix only list public orgs bug (#7742)
Diffstat (limited to 'templates')
-rw-r--r-- | templates/swagger/v1_json.tmpl | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index 43eca15871..4ae7f5a49e 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -33,6 +33,20 @@ ], "summary": "List all organizations", "operationId": "adminGetAllOrgs", + "parameters": [ + { + "type": "integer", + "description": "page number of results to return (1-based)", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "page size of results, maximum page size is 50", + "name": "limit", + "in": "query" + } + ], "responses": { "200": { "$ref": "#/responses/OrganizationList" |