Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2018-02-06 19:40:25 +0300
committerDouwe Maan <douwe@gitlab.com>2018-02-06 19:40:25 +0300
commite8e4e3fcbe8d63a06e29f48719d70ee94d220281 (patch)
treec64e6d6be9fbc2bffcab695a9deef272de0228ab /doc
parentf81306e76fa16458d8ea72c2e7edf76af822610d (diff)
parent28ef8cc56ec2f3b48e383050671b9dece58fe039 (diff)
Merge branch '42669-allow-order_by-users-in-gitlab-api' into 'master'
Add sorting options for /users API Closes #42669 See merge request gitlab-org/gitlab-ce!16945
Diffstat (limited to 'doc')
-rw-r--r--doc/api/users.md5
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
[
{