summaryrefslogtreecommitdiff
path: root/lib/api
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api')
-rw-r--r--lib/api/entities.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb
index 3548e8cc5a9..44a43985602 100644
--- a/lib/api/entities.rb
+++ b/lib/api/entities.rb
@@ -4,5 +4,20 @@ module Gitlab
expose :id, :email, :name, :bio, :skype, :linkedin, :twitter,
:dark_scheme, :theme_id, :blocked, :created_at
end
+
+ class Project < Grape::Entity
+ expose :id, :code, :name, :description, :path, :default_branch
+ expose :owner, :using => Entities::User
+ expose :private_flag, :as => :private
+ expose :issues_enabled, :merge_requests_enabled, :wall_enabled, :wiki_enabled, :created_at
+ end
+
+ class ProjectRepositoryBranches < Grape::Entity
+ expose :name, :commit
+ end
+
+ class ProjectRepositoryTags < Grape::Entity
+ expose :name, :commit
+ end
end
end