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

strategy.rb « feature_flag « entities « api « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 62178420370256b6cbde90acba3336951c7d3184 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

module API
  module Entities
    class FeatureFlag < Grape::Entity
      class Strategy < Grape::Entity
        expose :id, documentation: { type: 'integer', example: 1 }
        expose :name, documentation: { type: 'string', example: 'userWithId' }
        expose :parameters, documentation: { type: 'string', example: '{"userIds": "user1"}' }
        expose :scopes, using: FeatureFlag::Scope
      end
    end
  end
end