summaryrefslogtreecommitdiff
path: root/lib/api/projects.rb
diff options
context:
space:
mode:
authorFranz-Robert van Vugt <f.vanvugt@zeno.nu>2014-03-27 21:40:33 +0100
committerFranz-Robert van Vugt <f.vanvugt@zeno.nu>2014-03-27 21:40:33 +0100
commitcfc4a2dbe3652180c1d08d5d9e154e28cbb340fb (patch)
treef9af595878a2789be45c612e26ced8c9f7c592ad /lib/api/projects.rb
parentf03820ebf2f28ddb26e422322219a815d8cd3749 (diff)
parentfc5ac1451dcfda7cf53d536db79b552b29849276 (diff)
downloadgitlab-ce-cfc4a2dbe3652180c1d08d5d9e154e28cbb340fb.tar.gz
Merge branch 'master' of https://github.com/gitlabhq/gitlabhq into patch-1
Diffstat (limited to 'lib/api/projects.rb')
-rw-r--r--lib/api/projects.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/api/projects.rb b/lib/api/projects.rb
index 4d48d2194f8..9d290c75ba9 100644
--- a/lib/api/projects.rb
+++ b/lib/api/projects.rb
@@ -215,6 +215,17 @@ module API
@users = paginate @users
present @users, with: Entities::User
end
+
+ # Get a project labels
+ #
+ # Parameters:
+ # id (required) - The ID of a project
+ # Example Request:
+ # GET /projects/:id/labels
+ get ':id/labels' do
+ @labels = user_project.issues_labels
+ present @labels, with: Entities::Label
+ end
end
end
end