All URIs are relative to http://localhost/api/v1
Method | HTTP request | Description |
---|---|---|
CreateConstraint | Post /flags/{flagID}/segments/{segmentID}/constraints | |
DeleteConstraint | Delete /flags/{flagID}/segments/{segmentID}/constraints/{constraintID} | |
FindConstraints | Get /flags/{flagID}/segments/{segmentID}/constraints | |
PutConstraint | Put /flags/{flagID}/segments/{segmentID}/constraints/{constraintID} |
Constraint CreateConstraint(ctx, flagID, segmentID, body)
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
flagID | int64 | numeric ID of the flag | |
segmentID | int64 | 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]
DeleteConstraint(ctx, flagID, segmentID, constraintID)
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
flagID | int64 | numeric ID of the flag | |
segmentID | int64 | numeric ID of the segment | |
constraintID | int64 | numeric ID of the constraint |
(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]
[]Constraint FindConstraints(ctx, flagID, segmentID)
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
flagID | int64 | numeric ID of the flag | |
segmentID | int64 | 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 PutConstraint(ctx, flagID, segmentID, constraintID, body)
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
flagID | int64 | numeric ID of the flag | |
segmentID | int64 | numeric ID of the segment | |
constraintID | int64 | 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]