summaryrefslogtreecommitdiff
path: root/lib/api/entities.rb
diff options
context:
space:
mode:
authorNihad Abbasov <narkoz.2008@gmail.com>2012-06-27 05:51:39 -0700
committerNihad Abbasov <narkoz.2008@gmail.com>2012-06-28 03:44:20 -0700
commit7b5c3cc8be40ee161ae89a06bba6229da1032a0c (patch)
tree46e82de44b1061621357f24c05515327f2795a95 /lib/api/entities.rb
parent4ad91d3c1144c406e50c7b33bae684bd6837faf8 (diff)
downloadgitlab-ce-7b5c3cc8be40ee161ae89a06bba6229da1032a0c.tar.gz
add projects API
Diffstat (limited to 'lib/api/entities.rb')
-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