APi for commits. Better api docs
This commit is contained in:
parent
4cc169d3ca
commit
10d3a30b25
10 changed files with 205 additions and 85 deletions
|
@ -17,6 +17,11 @@ 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue