Add contributors API endpoint
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
8fb76a8308
commit
2e3818f14f
1 changed files with 12 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue