mirror of
https://github.com/hanzoai/insights-go.git
synced 2026-10-30 14:54:07 +00:00
* add support for fetching feature flag payloads * improve mock server handler readability * drying code * update decide fixtures * pr feedback
43 lines
1.6 KiB
JSON
43 lines
1.6 KiB
JSON
{
|
|
"count": 1,
|
|
"next": null,
|
|
"previous": null,
|
|
"flags": [
|
|
{
|
|
"id": 719,
|
|
"name": "Beta Feature",
|
|
"key": "beta-feature",
|
|
"filters": {
|
|
"groups": [
|
|
{
|
|
"properties": [
|
|
{"key": "email", "type": "person", "value": "[email protected]", "operator": "exact"}
|
|
],
|
|
"rollout_percentage": 100,
|
|
"variant": "second-variant"
|
|
},
|
|
{
|
|
"properties": [
|
|
{"key": "email", "type": "person", "value": "[email protected]", "operator": "exact"}
|
|
],
|
|
"rollout_percentage": 100,
|
|
"variant": "first-variant"
|
|
},
|
|
{"rollout_percentage": 50, "variant": "first-variant"}
|
|
],
|
|
"multivariate": {
|
|
"variants": [
|
|
{"key": "first-variant", "name": "First Variant", "rollout_percentage": 50},
|
|
{"key": "second-variant", "name": "Second Variant", "rollout_percentage": 25},
|
|
{"key": "third-variant", "name": "Third Variant", "rollout_percentage": 25}
|
|
]
|
|
},
|
|
"payloads": { "first-variant": "{\"test\": 1}", "second-variant": "{\"test\": 2}" }
|
|
},
|
|
"deleted": false,
|
|
"active": true,
|
|
"is_simple_flag": false,
|
|
"rollout_percentage": null
|
|
}
|
|
]
|
|
} |