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

14 lines
276 B
Ruby
Raw Normal View History

class LabelEntity < Grape::Entity
2017-07-07 08:54:49 -04:00
expose :id, if: ->(label, _) { !label.is_a?(GlobalLabel) }
expose :title
expose :color
expose :description
expose :group_id
expose :project_id
expose :template
2017-05-05 18:47:32 -04:00
expose :text_color
expose :created_at
expose :updated_at
end