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 |
list[Distribution] find_distributions(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.DistributionApi()
flag_id = 789 # int | numeric ID of the flag
segment_id = 789 # int | numeric ID of the segment
try:
api_response = api_instance.find_distributions(flag_id, segment_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling DistributionApi->find_distributions: %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]
list[Distribution] put_distributions(flag_id, segment_id, body)
replace the distribution with the new setting
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.DistributionApi()
flag_id = 789 # int | numeric ID of the flag
segment_id = 789 # int | numeric ID of the segment
body = flagr.PutDistributionsRequest() # PutDistributionsRequest | array of distributions
try:
api_response = api_instance.put_distributions(flag_id, segment_id, body)
pprint(api_response)
except ApiException as e:
print("Exception when calling DistributionApi->put_distributions: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
flag_id | int | numeric ID of the flag | |
segment_id | int | numeric ID of the segment | |
body | PutDistributionsRequest | array of distributions |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]