BigW Consortium Gitlab

project_entity.rb 257 Bytes
Newer Older
1
class ProjectEntity < Grape::Entity
2 3
  include RequestAwareEntity
  
4 5 6 7
  expose :id
  expose :name

  expose :full_path do |project|
8
    namespace_project_path(project.namespace, project)
9 10 11 12 13 14
  end

  expose :full_name do |project|
    project.full_name
  end
end