summaryrefslogtreecommitdiff
path: root/lib/api/entities/feature_flag.rb
blob: 9dec3873504872725ca1f5f69ae0b0248fbc2102 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

module API
  module Entities
    class FeatureFlag < Grape::Entity
      expose :name
      expose :description
      expose :active
      expose :version
      expose :created_at
      expose :updated_at
      expose :scopes do |_ff|
        []
      end
      expose :strategies, using: FeatureFlag::Strategy
    end
  end
end