diff options
author | Marko, Peter <peter.marko@siemens.com> | 2018-06-08 20:37:19 +0200 |
---|---|---|
committer | Marko, Peter <peter.marko@siemens.com> | 2018-06-12 08:16:01 +0200 |
commit | 79033a5f678c05c640d0b0cb7b53909ae2b5e221 (patch) | |
tree | 65120efc093d2a35e50984b433f004242d904803 /lib/api/groups.rb | |
parent | a8da4f3fa810ed0931ee8f54ac8123fb2f484830 (diff) | |
download | gitlab-ce-79033a5f678c05c640d0b0cb7b53909ae2b5e221.tar.gz |
Add id group api sorting option
With introduction of subgroups, many groups may have the same
name and/or path, thus further sorting options are necessary.
Signed-off-by: Marko, Peter <peter.marko@siemens.com>
Diffstat (limited to 'lib/api/groups.rb')
-rw-r--r-- | lib/api/groups.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/groups.rb b/lib/api/groups.rb index 03b6b30a0d8..9d0b55c35c7 100644 --- a/lib/api/groups.rb +++ b/lib/api/groups.rb @@ -32,7 +32,7 @@ module API optional :all_available, type: Boolean, desc: 'Show all group that you have access to' optional :search, type: String, desc: 'Search for a specific group' optional :owned, type: Boolean, default: false, desc: 'Limit by owned by authenticated user' - optional :order_by, type: String, values: %w[name path], default: 'name', desc: 'Order by name or path' + optional :order_by, type: String, values: %w[name path id], default: 'name', desc: 'Order by name, path or id' optional :sort, type: String, values: %w[asc desc], default: 'asc', desc: 'Sort by asc (ascending) or desc (descending)' use :pagination end |