Skip to content
Snippets Groups Projects
Unverified Commit 5b20df0a authored by Camil Staps's avatar Camil Staps
Browse files

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

parent ab498bd4
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment