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)
from __future__ import print_function
import time
import flagr
from flagr.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = flagr.ConstraintApi()
flag_id = 789 # int | numeric ID of the flag
segment_id = 789 # int | numeric ID of the segment
body = flagr.CreateConstraintRequest() # CreateConstraintRequest | create a constraint
try:
api_response = api_instance.create_constraint(flag_id, segment_id, body)
pprint(api_response)
except ApiException as e:
print("Exception when calling ConstraintApi->create_constraint: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
flag_id | int | numeric ID of the flag | |
segment_id | int | numeric ID of the segment | |
body | CreateConstraintRequest | create a constraint |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_constraint(flag_id, segment_id, constraint_id)
from __future__ import print_function
import time
import flagr
from flagr.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = flagr.ConstraintApi()
flag_id = 789 # int | numeric ID of the flag
segment_id = 789 # int | numeric ID of the segment
constraint_id = 789 # int | numeric ID of the constraint
try:
api_instance.delete_constraint(flag_id, segment_id, constraint_id)
except ApiException as e:
print("Exception when calling ConstraintApi->delete_constraint: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
flag_id | int | numeric ID of the flag | |
segment_id | int | numeric ID of the segment | |
constraint_id | int | numeric ID of the constraint |
void (empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[Constraint] find_constraints(flag_id, segment_id)
from __future__ import print_function
import time
import flagr
from flagr.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = flagr.ConstraintApi()
flag_id = 789 # int | numeric ID of the flag
segment_id = 789 # int | numeric ID of the segment
try:
api_response = api_instance.find_constraints(flag_id, segment_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling ConstraintApi->find_constraints: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
flag_id | int | numeric ID of the flag | |
segment_id | int | numeric ID of the segment |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Constraint put_constraint(flag_id, segment_id, constraint_id, body)
from __future__ import print_function
import time
import flagr
from flagr.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = flagr.ConstraintApi()
flag_id = 789 # int | numeric ID of the flag
segment_id = 789 # int | numeric ID of the segment
constraint_id = 789 # int | numeric ID of the constraint
body = flagr.CreateConstraintRequest() # CreateConstraintRequest | create a constraint
try:
api_response = api_instance.put_constraint(flag_id, segment_id, constraint_id, body)
pprint(api_response)
except ApiException as e:
print("Exception when calling ConstraintApi->put_constraint: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
flag_id | int | numeric ID of the flag | |
segment_id | int | numeric ID of the segment | |
constraint_id | int | numeric ID of the constraint | |
body | CreateConstraintRequest | create a constraint |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]