All URIs are relative to http://localhost/api/v1
Method | HTTP request | Description |
---|---|---|
find_distributions | GET /flags/{flagID}/segments/{segmentID}/distributions | |
put_distributions | PUT /flags/{flagID}/segments/{segmentID}/distributions |
Array<Distribution> find_distributions(flag_id, segment_id)
# load the gem
require 'rbflagr'
api_instance = Flagr::DistributionApi.new
flag_id = 789 # Integer | numeric ID of the flag
segment_id = 789 # Integer | numeric ID of the segment
begin
result = api_instance.find_distributions(flag_id, segment_id)
p result
rescue Flagr::ApiError => e
puts "Exception when calling DistributionApi->find_distributions: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
flag_id | Integer | numeric ID of the flag | |
segment_id | Integer | numeric ID of the segment |
No authorization required
- Content-Type: application/json
- Accept: application/json
Array<Distribution> put_distributions(flag_id, segment_id, body)
replace the distribution with the new setting
# load the gem
require 'rbflagr'
api_instance = Flagr::DistributionApi.new
flag_id = 789 # Integer | numeric ID of the flag
segment_id = 789 # Integer | numeric ID of the segment
body = Flagr::PutDistributionsRequest.new # PutDistributionsRequest | array of distributions
begin
result = api_instance.put_distributions(flag_id, segment_id, body)
p result
rescue Flagr::ApiError => e
puts "Exception when calling DistributionApi->put_distributions: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
flag_id | Integer | numeric ID of the flag | |
segment_id | Integer | numeric ID of the segment | |
body | PutDistributionsRequest | array of distributions |
No authorization required
- Content-Type: application/json
- Accept: application/json