Commit 5b20df0a authored by Camil Staps's avatar Camil Staps

Add projects/:id/starrers API endpoint for users who starred a repository

parent ab498bd4
......@@ -358,6 +358,18 @@ module API
end
end
desc 'List users who starred this project' do
success Entities::UserBasic
end
params do
use :collection_params
end
get ':id/starrers' do
users = DeclarativePolicy.subject_scope { user_project.starrers }
present users, with: Entities::UserBasic
end
desc 'Get languages in project repository'
get ':id/languages' do
::Projects::RepositoryLanguagesService
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment