summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2016-11-17 21:50:02 +0000
committerSean McGivern <sean@mcgivern.me.uk>2016-11-17 21:50:02 +0000
commit8823107e57a4fe6c22b85537bd0fe498af6cbbf8 (patch)
treeca61c97bb34fed519f3cd7c8057b0f316cbd33f2 /doc
parent0e1ff0ebd44f5cf0154d9ef5b5b818fb47a82123 (diff)
parent79122896318ae50c835418888f7f781fa2e463f4 (diff)
downloadgitlab-ce-8823107e57a4fe6c22b85537bd0fe498af6cbbf8.tar.gz
Merge branch 'sort-api-groups' into 'master'
Allow sorting groups in API Relates to #20013. See merge request !7529
Diffstat (limited to 'doc')
-rw-r--r--doc/api/groups.md9
1 files changed, 7 insertions, 2 deletions
diff --git a/doc/api/groups.md b/doc/api/groups.md
index 45a3118f27a..5e6f498c365 100644
--- a/doc/api/groups.md
+++ b/doc/api/groups.md
@@ -6,8 +6,13 @@ Get a list of groups. (As user: my groups or all available, as admin: all groups
Parameters:
-- `all_available` (optional) - if passed, show all groups you have access to
-- `skip_groups` (optional)(array of group IDs) - if passed, skip groups
+| Attribute | Type | Required | Description |
+| --------- | ---- | -------- | ----------- |
+| `skip_groups` | array of integers | no | Skip the group IDs passes |
+| `all_available` | boolean | no | Show all the groups you have access to |
+| `search` | string | no | Return list of authorized groups matching the search criteria |
+| `order_by` | string | no | Order groups by `name` or `path`. Default is `name` |
+| `sort` | string | no | Order groups in `asc` or `desc` order. Default is `asc` |
```
GET /groups