add projects API
This commit is contained in:
parent
4ad91d3c11
commit
7b5c3cc8be
3 changed files with 101 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue