mirror of
https://github.com/hanzoai/insights-go.git
synced 2026-09-30 22:46:12 +00:00
* add support for fetching feature flag payloads * improve mock server handler readability * drying code * update decide fixtures * pr feedback
35 lines
1.3 KiB
JSON
35 lines
1.3 KiB
JSON
{
|
|
"count": 1,
|
|
"next": null,
|
|
"previous": null,
|
|
"flags": [
|
|
{
|
|
"id": 719,
|
|
"name": "Beta Feature",
|
|
"key": "multivariate-flag",
|
|
"filters": {
|
|
"groups": [{"properties": [], "rollout_percentage": 55}],
|
|
"multivariate": {
|
|
"variants": [
|
|
{"key": "first-variant", "name": "First Variant", "rollout_percentage": 50},
|
|
{"key": "second-variant", "name": "Second Variant", "rollout_percentage": 20},
|
|
{"key": "third-variant", "name": "Third Variant", "rollout_percentage": 20},
|
|
{"key": "fourth-variant", "name": "Fourth Variant", "rollout_percentage": 5},
|
|
{"key": "fifth-variant", "name": "Fifth Variant", "rollout_percentage": 5}
|
|
]
|
|
},
|
|
"payloads": {
|
|
"first-variant": "{\"test\": 1}",
|
|
"second-variant": "{\"test\": 2}",
|
|
"third-variant": "{\"test\": 3}",
|
|
"fourth-variant": "{\"test\": 4}",
|
|
"fifth-variant": "{\"test\": 5}"
|
|
}
|
|
},
|
|
"deleted": false,
|
|
"active": true,
|
|
"is_simple_flag": false,
|
|
"rollout_percentage": null
|
|
}
|
|
]
|
|
} |