Welcome to mirror list, hosted at ThFree Co, Russian Federation.

feature_flag.rb « entities « api « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 273307357a20f9bc4cae372bc44665eb8db419a3 (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, documentation: { type: 'string', example: 'merge_train' }
      expose :description, documentation: { type: 'string', example: 'merge train feature flag' }
      expose :active, documentation: { type: 'boolean' }
      expose :version, documentation: { type: 'string', example: 'new_version_flag' }
      expose :created_at, documentation: { type: 'dateTime', example: '2019-11-04T08:13:51.423Z' }
      expose :updated_at, documentation: { type: 'dateTime', example: '2019-11-04T08:13:51.423Z' }
      expose :scopes do |_ff|
        []
      end
      expose :strategies, using: FeatureFlag::Strategy
    end
  end
end