summaryrefslogtreecommitdiff
path: root/app/serializers/label_entity.rb
blob: 4452161051e4c44955c8f13f76e71c1861d8f03b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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