All URIs are relative to http://localhost/api/v1
Method | HTTP request | Description |
---|---|---|
CreateVariant | Post /flags/{flagID}/variants | |
DeleteVariant | Delete /flags/{flagID}/variants/{variantID} | |
FindVariants | Get /flags/{flagID}/variants | |
PutVariant | Put /flags/{flagID}/variants/{variantID} |
Variant CreateVariant(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 | CreateVariantRequest | create a variant |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteVariant(ctx, flagID, variantID)
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
flagID | int64 | numeric ID of the flag | |
variantID | int64 | numeric ID of the variant |
(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]
[]Variant FindVariants(ctx, flagID)
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
flagID | int64 | numeric ID of the 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]
Variant PutVariant(ctx, flagID, variantID, body)
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
flagID | int64 | numeric ID of the flag | |
variantID | int64 | numeric ID of the variant | |
body | PutVariantRequest | update a variant |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]