diff options
| author | Douwe Maan <douwe@gitlab.com> | 2015-12-08 22:26:29 +0100 | 
|---|---|---|
| committer | Douwe Maan <douwe@gitlab.com> | 2015-12-08 22:26:29 +0100 | 
| commit | 6c94a44295eec5efff87102fecffc2ac03ee560d (patch) | |
| tree | 5206e11ab9e08f1910256af3693654912170602b /lib/api | |
| parent | 5beacba038c097e513b46f24ee26d5065ad419c9 (diff) | |
| parent | e616739e2fae12e5358d2cea40089a51468d9b4a (diff) | |
| download | gitlab-ce-6c94a44295eec5efff87102fecffc2ac03ee560d.tar.gz | |
Merge branch 'master' into mr-builds
# Conflicts:
#	app/controllers/projects/merge_requests_controller.rb
#	app/views/projects/merge_requests/widget/_heading.html.haml
Diffstat (limited to 'lib/api')
| -rw-r--r-- | lib/api/groups.rb | 12 | 
1 files changed, 12 insertions, 0 deletions
| diff --git a/lib/api/groups.rb b/lib/api/groups.rb index 024aeec2e14..1a14d870a4a 100644 --- a/lib/api/groups.rb +++ b/lib/api/groups.rb @@ -65,6 +65,18 @@ module API          DestroyGroupService.new(group, current_user).execute        end +      # Get a list of projects in this group +      # +      # Example Request: +      #   GET /groups/:id/projects +      get ":id/projects" do +        group = find_group(params[:id]) +        projects = group.projects +        projects = filter_projects(projects) +        projects = paginate projects +        present projects, with: Entities::Project +      end +        # Transfer a project to the Group namespace        #        # Parameters: | 
