APi for commits. Better api docs

This commit is contained in:
Dmitriy Zaporozhets 2012-09-21 13:22:30 +03:00
parent 4cc169d3ca
commit 10d3a30b25
10 changed files with 205 additions and 85 deletions

View file

@ -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