2017-03-24 06:11:36 -04:00
|
|
|
class ProjectEntity < Grape::Entity
|
2017-04-28 12:06:19 -04:00
|
|
|
include RequestAwareEntity
|
|
|
|
|
2017-03-24 06:11:36 -04:00
|
|
|
expose :id
|
|
|
|
expose :name
|
|
|
|
|
|
|
|
expose :full_path do |project|
|
2017-04-28 12:06:19 -04:00
|
|
|
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
|