| ... | @@ -17,11 +17,6 @@ module Gitlab |
... | @@ -17,11 +17,6 @@ module Gitlab |
|
|
expose :id, :url
|
|
expose :id, :url
|
|
|
end
|
|
end
|
|
|
|
|
|
|
|
class Commit < Grape::Entity
|
|
|
|
|
expose :id, :short_id, :title,
|
|
|
|
|
:author_name, :author_email, :created_at
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
class Project < Grape::Entity
|
|
class Project < Grape::Entity
|
|
|
expose :id, :code, :name, :description, :path, :default_branch
|
|
expose :id, :code, :name, :description, :path, :default_branch
|
|
|
expose :owner, using: Entities::UserBasic
|
|
expose :owner, using: Entities::UserBasic
|
| ... | @@ -39,6 +34,10 @@ module Gitlab |
... | @@ -39,6 +34,10 @@ module Gitlab |
|
|
expose :name, :commit
|
|
expose :name, :commit
|
|
|
end
|
|
end
|
|
|
|
|
|
|
|
|
class RepoCommit < Grape::Entity
|
|
|
|
expose :id, :short_id, :title, :author_name, :author_email, :created_at
|
|
|
|
end
|
|
|
|
|
|
|
class ProjectSnippet < Grape::Entity
|
|
class ProjectSnippet < Grape::Entity
|
|
|
expose :id, :title, :file_name
|
|
expose :id, :title, :file_name
|
|
|
expose :author, using: Entities::UserBasic
|
|
expose :author, using: Entities::UserBasic
|
| ... | |
... | |
| ... | | ... | |