add project snippets API
This commit is contained in:
parent
1d2c981860
commit
378dc55d29
3 changed files with 87 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue