diff options
author | Toon Claes <toon@gitlab.com> | 2017-02-01 11:23:57 +0100 |
---|---|---|
committer | Toon Claes <toon@gitlab.com> | 2017-02-14 16:41:57 +0100 |
commit | 4e9e29d295fe2f8cd258cde4b65e244eb74a1ae6 (patch) | |
tree | a1112a9839019fd0c667d19d995474bae1ed8a17 /lib/api/groups.rb | |
parent | 9a0c1ffabcfc9d29e8cccd8d1e2162d6abbf9277 (diff) | |
download | gitlab-ce-4e9e29d295fe2f8cd258cde4b65e244eb74a1ae6.tar.gz |
API: Consolidate /projects endpoint
It consolidates these endpoints:
- /projects
- /projects/owned
- /projects/visible
- /projects/starred
- /projects/all
Into the /projects endpoint using query parameters.
Diffstat (limited to 'lib/api/groups.rb')
-rw-r--r-- | lib/api/groups.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/api/groups.rb b/lib/api/groups.rb index 5c132bdd6f9..9f29c4466ab 100644 --- a/lib/api/groups.rb +++ b/lib/api/groups.rb @@ -143,6 +143,9 @@ module API desc: 'Return projects sorted in ascending and descending order' optional :simple, type: Boolean, default: false, desc: 'Return only the ID, URL, name, and path of each project' + optional :owned, type: Boolean, default: false, desc: 'Limit by owned by authenticated user' + optional :starred, type: Boolean, default: false, desc: 'Limit by starred status' + use :pagination end get ":id/projects" do |