2012-06-27 13:32:56 +02:00
|
|
|
module Gitlab
|
|
|
|
module Entities
|
|
|
|
class User < Grape::Entity
|
|
|
|
expose :id, :email, :name, :bio, :skype, :linkedin, :twitter,
|
|
|
|
:dark_scheme, :theme_id, :blocked, :created_at
|
|
|
|
end
|
2012-06-27 14:51:39 +02:00
|
|
|
|
|
|
|
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
|
2012-06-29 15:34:08 +02:00
|
|
|
|
|
|
|
class ProjectSnippet < Grape::Entity
|
|
|
|
expose :id, :title, :file_name
|
|
|
|
expose :author, :using => Entities::User
|
|
|
|
expose :expires_at, :updated_at, :created_at
|
|
|
|
end
|
2012-06-27 13:32:56 +02:00
|
|
|
end
|
|
|
|
end
|