All URIs are relative to http://localhost/api/v1
Method | HTTP request | Description |
---|---|---|
create_constraint | POST /flags/{flagID}/segments/{segmentID}/constraints | |
delete_constraint | DELETE /flags/{flagID}/segments/{segmentID}/constraints/{constraintID} | |
find_constraints | GET /flags/{flagID}/segments/{segmentID}/constraints | |
put_constraint | PUT /flags/{flagID}/segments/{segmentID}/constraints/{constraintID} |
Constraint create_constraint(flag_id, segment_id, body)
# load the gem
require 'rbflagr'
api_instance = Flagr::ConstraintApi.new
flag_id = 789 # Integer | numeric ID of the flag
segment_id = 789 # Integer | numeric ID of the segment
body = Flagr::CreateConstraintRequest.new # CreateConstraintRequest | create a constraint
begin
result = api_instance.create_constraint(flag_id, segment_id, body)
p result
rescue Flagr::ApiError => e
puts "Exception when calling ConstraintApi->create_constraint: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
flag_id | Integer | numeric ID of the flag | |
segment_id | Integer | numeric ID of the segment | |
body | CreateConstraintRequest | create a constraint |
No authorization required
- Content-Type: application/json
- Accept: application/json
delete_constraint(flag_id, segment_id, constraint_id)
# load the gem
require 'rbflagr'
api_instance = Flagr::ConstraintApi.new
flag_id = 789 # Integer | numeric ID of the flag
segment_id = 789 # Integer | numeric ID of the segment
constraint_id = 789 # Integer | numeric ID of the constraint
begin
api_instance.delete_constraint(flag_id, segment_id, constraint_id)
rescue Flagr::ApiError => e
puts "Exception when calling ConstraintApi->delete_constraint: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
flag_id | Integer | numeric ID of the flag | |
segment_id | Integer | numeric ID of the segment | |
constraint_id | Integer | numeric ID of the constraint |
nil (empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
Array<Constraint> find_constraints(flag_id, segment_id)
# load the gem
require 'rbflagr'
api_instance = Flagr::ConstraintApi.new
flag_id = 789 # Integer | numeric ID of the flag
segment_id = 789 # Integer | numeric ID of the segment
begin
result = api_instance.find_constraints(flag_id, segment_id)
p result
rescue Flagr::ApiError => e
puts "Exception when calling ConstraintApi->find_constraints: #{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
Constraint put_constraint(flag_id, segment_id, constraint_id, body)
# load the gem
require 'rbflagr'
api_instance = Flagr::ConstraintApi.new
flag_id = 789 # Integer | numeric ID of the flag
segment_id = 789 # Integer | numeric ID of the segment
constraint_id = 789 # Integer | numeric ID of the constraint
body = Flagr::CreateConstraintRequest.new # CreateConstraintRequest | create a constraint
begin
result = api_instance.put_constraint(flag_id, segment_id, constraint_id, body)
p result
rescue Flagr::ApiError => e
puts "Exception when calling ConstraintApi->put_constraint: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
flag_id | Integer | numeric ID of the flag | |
segment_id | Integer | numeric ID of the segment | |
constraint_id | Integer | numeric ID of the constraint | |
body | CreateConstraintRequest | create a constraint |
No authorization required
- Content-Type: application/json
- Accept: application/json