diff options
author | Nihad Abbasov <narkoz.2008@gmail.com> | 2012-06-29 06:34:08 -0700 |
---|---|---|
committer | Nihad Abbasov <narkoz.2008@gmail.com> | 2012-06-29 06:34:08 -0700 |
commit | 378dc55d29a97447315c6181f678cf933afbbb78 (patch) | |
tree | 999cfa2b39fb4b338cac01e98cb72e451fce5ddd /lib/api/entities.rb | |
parent | 1d2c98186014cedc01f04382d507a34a71008ab1 (diff) | |
download | gitlab-ce-378dc55d29a97447315c6181f678cf933afbbb78.tar.gz |
add project snippets API
Diffstat (limited to 'lib/api/entities.rb')
-rw-r--r-- | lib/api/entities.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index 44a43985602..7129e761a52 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -19,5 +19,11 @@ module Gitlab class ProjectRepositoryTags < Grape::Entity expose :name, :commit end + + class ProjectSnippet < Grape::Entity + expose :id, :title, :file_name + expose :author, :using => Entities::User + expose :expires_at, :updated_at, :created_at + end end end |