diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-07-28 16:49:44 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-07-28 16:49:44 +0300 |
commit | a784b996b3071cfe1807b1108316143dbc64492f (patch) | |
tree | e7f538d5837c8e2eac4c1b342ad3e154e594406a /lib/api | |
parent | 43d118803133558209973464b1c16fd4c7ba446c (diff) |
Add project star and fork count, group avatar URL and user/group web URL attributes to API
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/entities.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index ecf1412dee5..c1b0cece344 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -5,7 +5,7 @@ module API end class UserBasic < UserSafe - expose :id, :state, :avatar_url + expose :id, :state, :avatar_url, :web_url end class User < UserBasic @@ -59,6 +59,7 @@ module API expose :namespace expose :forked_from_project, using: Entities::ForkedFromProject, if: lambda{ | project, options | project.forked? } expose :avatar_url + expose :star_count, :forks_count end class ProjectMember < UserBasic @@ -69,6 +70,7 @@ module API class Group < Grape::Entity expose :id, :name, :path, :description + expose :avatar_url, :web_url end class GroupDetail < Group |