gitlab-org--gitlab-foss/app/serializers/project_entity.rb

15 lines
257 B
Ruby
Raw Normal View History

2017-03-24 06:11:36 -04:00
class ProjectEntity < Grape::Entity
include RequestAwareEntity
2017-03-24 06:11:36 -04:00
expose :id
expose :name
expose :full_path do |project|
namespace_project_path(project.namespace, project)
2017-03-24 06:11:36 -04:00
end
expose :full_name do |project|
project.full_name
end
end