summaryrefslogtreecommitdiff
path: root/app/serializers/label_entity.rb
blob: 98743d62b501fa81393e70db5fbe1b7177bb0a2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

class LabelEntity < Grape::Entity
  expose :id, if: ->(label, _) { !label.is_a?(GlobalLabel) }

  expose :title
  expose :color
  expose :description
  expose :group_id
  expose :project_id
  expose :template
  expose :text_color
  expose :created_at
  expose :updated_at
end