All URIs are relative to http://localhost/api/v1
Method | HTTP request | Description |
---|---|---|
CreateSegment | Post /flags/{flagID}/segments | |
DeleteSegment | Delete /flags/{flagID}/segments/{segmentID} | |
FindSegments | Get /flags/{flagID}/segments | |
PutSegment | Put /flags/{flagID}/segments/{segmentID} | |
PutSegmentsReorder | Put /flags/{flagID}/segments/reorder |
Segment CreateSegment(ctx, flagID, body)
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
flagID | int64 | numeric ID of the flag to get | |
body | CreateSegmentRequest | create a segment under a flag |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteSegment(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 |
(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]
[]Segment FindSegments(ctx, flagID)
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
flagID | int64 | numeric ID of the flag to get |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Segment PutSegment(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 | PutSegmentRequest | update a 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]
PutSegmentsReorder(ctx, flagID, body)
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
flagID | int64 | numeric ID of the flag | |
body | PutSegmentReorderRequest | reorder segments |
(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]