diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2018-02-06 15:37:52 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2018-02-06 16:00:33 +0200 |
commit | 28ef8cc56ec2f3b48e383050671b9dece58fe039 (patch) | |
tree | aafafb1f3deb61a860c54585f7c877658dfd5001 /doc | |
parent | 1a430836e2413caf61cb1325c2835c5ad390202b (diff) | |
download | gitlab-ce-28ef8cc56ec2f3b48e383050671b9dece58fe039.tar.gz |
Add sorting options for /users API (admin only)42669-allow-order_by-users-in-gitlab-api
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/users.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/api/users.md b/doc/api/users.md index 1da6fcf297d..2082e45756a 100644 --- a/doc/api/users.md +++ b/doc/api/users.md @@ -51,6 +51,11 @@ GET /users?blocked=true GET /users ``` +| Attribute | Type | Required | Description | +| --------- | ---- | -------- | ----------- | +| `order_by` | string | no | Return projects ordered by `id`, `name`, `username`, `created_at`, or `updated_at` fields. Default is `id` | +| `sort` | string | no | Return projects sorted in `asc` or `desc` order. Default is `desc` | + ```json [ { |