All URIs are relative to http://localhost/api/v1
Method | HTTP request | Description |
---|---|---|
CreateFlag | Post /flags | |
DeleteFlag | Delete /flags/{flagID} | |
FindFlags | Get /flags | |
GetFlag | Get /flags/{flagID} | |
GetFlagEntityTypes | Get /flags/entity_types | |
GetFlagSnapshots | Get /flags/{flagID}/snapshots | |
PutFlag | Put /flags/{flagID} | |
SetFlagEnabled | Put /flags/{flagID}/enabled |
Flag CreateFlag(ctx, body)
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
body | CreateFlagRequest | create 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]
DeleteFlag(ctx, flagID)
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
flagID | int64 | numeric ID of the flag |
(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]
[]Flag FindFlags(ctx, optional)
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *FindFlagsOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a FindFlagsOpts struct
Name | Type | Description | Notes |
---|---|---|---|
limit | optional.Int64 | the numbers of flags to return | |
enabled | optional.Bool | return flags having given enabled status | |
description | optional.String | return flags exactly matching given description | |
descriptionLike | optional.String | return flags partially matching given description | |
key | optional.String | return flags matching given key | |
offset | optional.Int64 | return flags given the offset, it should usually set together with limit | |
preload | optional.Bool | return flags with preloaded segments and variants |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Flag GetFlag(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]
[]string GetFlagEntityTypes(ctx, )
This endpoint does not need any parameter.
[]string
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]FlagSnapshot GetFlagSnapshots(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]
Flag PutFlag(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 | PutFlagRequest | update 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]
Flag SetFlagEnabled(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 | SetFlagEnabledRequest | set flag enabled state |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]