diff options
author | Dmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com> | 2012-09-21 13:22:30 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com> | 2012-09-21 13:22:30 +0300 |
commit | 10d3a30b255cd85b2cf7af39814fd7418eecd838 (patch) | |
tree | 1082a03374c7130ad33f9136d0d41f979bfe603c /lib/api/entities.rb | |
parent | 4cc169d3cacea7e4325bb5632cc8878a7c3f41fe (diff) | |
download | gitlab-ce-10d3a30b255cd85b2cf7af39814fd7418eecd838.tar.gz |
APi for commits. Better api docs
Diffstat (limited to 'lib/api/entities.rb')
-rw-r--r-- | lib/api/entities.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index a8b786aebb0..1909a016208 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -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 |