add project snippets API

This commit is contained in:
Nihad Abbasov 2012-06-29 06:34:08 -07:00
parent 1d2c981860
commit 378dc55d29
3 changed files with 87 additions and 0 deletions

View file

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