diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-07-02 10:49:10 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-07-02 10:49:10 +0400 |
commit | 2e3818f14f1c8ac54f36c216082dcab0d5cce99a (patch) | |
tree | 771fde21872365bc68056d1cedabd6ee5bc2bce3 /lib/api/repositories.rb | |
parent | 8fb76a8308292d991a32ea76e50fb5ecfa3284b2 (diff) |
Add contributors API endpoint
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'lib/api/repositories.rb')
-rw-r--r-- | lib/api/repositories.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/api/repositories.rb b/lib/api/repositories.rb index 03806d9343b..459379ad30c 100644 --- a/lib/api/repositories.rb +++ b/lib/api/repositories.rb @@ -150,6 +150,18 @@ module API compare = Gitlab::Git::Compare.new(user_project.repository.raw_repository, params[:from], params[:to], MergeRequestDiff::COMMITS_SAFE_SIZE) present compare, with: Entities::Compare end + + # Get repository contributors + # + # Parameters: + # id (required) - The ID of a project + # Example Request: + # GET /projects/:id/repository/contributors + get ':id/repository/contributors' do + authorize! :download_code, user_project + + log = user_project.repository.graph_log + end end end end |