API: commits belong to project repository
This commit is contained in:
parent
131553627d
commit
4a072be2d7
8 changed files with 77 additions and 102 deletions
|
@ -17,11 +17,6 @@ module Gitlab
|
|||
expose :id, :url
|
||||
end
|
||||
|
||||
class Commit < Grape::Entity
|
||||
expose :id, :short_id, :title,
|
||||
:author_name, :author_email, :created_at
|
||||
end
|
||||
|
||||
class Project < Grape::Entity
|
||||
expose :id, :code, :name, :description, :path, :default_branch
|
||||
expose :owner, using: Entities::UserBasic
|
||||
|
@ -39,6 +34,10 @@ module Gitlab
|
|||
expose :name, :commit
|
||||
end
|
||||
|
||||
class RepoCommit < Grape::Entity
|
||||
expose :id, :short_id, :title, :author_name, :author_email, :created_at
|
||||
end
|
||||
|
||||
class ProjectSnippet < Grape::Entity
|
||||
expose :id, :title, :file_name
|
||||
expose :author, using: Entities::UserBasic
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue