API: Support paging in the admin orgs list API (#26932)

* Add page/limit to org search

* Update docs

* Fix test per PR feedback
This commit is contained in:
Benjamin Blattberg
2020-08-12 10:59:07 +03:00
committed by GitHub
parent 214c1078aa
commit 3403db190d
3 changed files with 44 additions and 3 deletions
+3 -1
View File
@@ -325,7 +325,7 @@ Content-Type: application/json
### Search all Organizations
`GET /api/orgs`
`GET /api/orgs?perpage=10&page=1`
Only works with Basic Authentication (username and password), see [introduction](#admin-organizations-api).
@@ -339,6 +339,8 @@ Content-Type: application/json
Note: The api will only work when you pass the admin name and password
to the request HTTP URL, like http://admin:admin@localhost:3000/api/orgs
Default value for the `perpage` parameter is `1000` and for the `page` parameter is `0`.
**Example Response**:
```http