debian-mirror-gitlab/app/serializers/project_entity.rb
2017-09-10 17:25:29 +05:30

14 lines
228 B
Ruby

class ProjectEntity < Grape::Entity
include RequestAwareEntity
expose :id
expose :name
expose :full_path do |project|
project_path(project)
end
expose :full_name do |project|
project.full_name
end
end