Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/api
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-07-28 16:49:44 +0300
committerDouwe Maan <douwe@gitlab.com>2015-07-28 16:49:44 +0300
commita784b996b3071cfe1807b1108316143dbc64492f (patch)
treee7f538d5837c8e2eac4c1b342ad3e154e594406a /lib/api
parent43d118803133558209973464b1c16fd4c7ba446c (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.rb4
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