debian-mirror-gitlab/lib/api/entities/feature_flag.rb

19 lines
739 B
Ruby
Raw Normal View History

2021-01-03 14:25:43 +05:30
# frozen_string_literal: true
module API
module Entities
class FeatureFlag < Grape::Entity
2023-01-13 00:05:48 +05:30
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' }
2021-11-18 22:05:49 +05:30
expose :scopes do |_ff|
[]
end
2021-02-22 17:27:13 +05:30
expose :strategies, using: FeatureFlag::Strategy
2021-01-03 14:25:43 +05:30
end
end
end