summaryrefslogtreecommitdiff
path: root/lib/api/projects.rb
diff options
context:
space:
mode:
authorÁbner Silva de Oliveira <abner.silva@gmail.com>2014-03-21 06:18:19 -0300
committerÁbner Silva de Oliveira <abner.silva@gmail.com>2014-03-21 06:25:25 -0300
commit44aa6b90ddde3a7babc6ed9f50d73040d6184789 (patch)
tree1f1107a5b6c1535f5e2635c88d95a4f4b5a7cbe6 /lib/api/projects.rb
parentfb919a631c16f0046c5599a9e9e9fa38ff4a699a (diff)
downloadgitlab-ce-44aa6b90ddde3a7babc6ed9f50d73040d6184789.tar.gz
added api method to return labels of a given project
Diffstat (limited to 'lib/api/projects.rb')
-rw-r--r--lib/api/projects.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/api/projects.rb b/lib/api/projects.rb
index 4d48d2194f8..40b5ce86c93 100644
--- a/lib/api/projects.rb
+++ b/lib/api/projects.rb
@@ -215,6 +215,15 @@ module API
@users = paginate @users
present @users, with: Entities::User
end
+
+ # Get a labels list
+ #
+ # Example Request:
+ # GET /users
+ get ':id/labels' do
+ @labels = user_project.issues_labels
+ present @labels, with: Entities::Label
+ end
end
end
end