mirror of
https://github.com/hanzoai/insights-go.git
synced 2026-11-03 00:52:11 +00:00
* add support for fetching feature flag payloads * improve mock server handler readability * drying code * update decide fixtures * pr feedback
52 lines
1.5 KiB
JSON
52 lines
1.5 KiB
JSON
{
|
|
"count": 1,
|
|
"next": null,
|
|
"previous": null,
|
|
"flags": [
|
|
{
|
|
"id": 1,
|
|
"name": "Beta Feature",
|
|
"key": "beta-feature",
|
|
"filters": {
|
|
"aggregation_group_type_index": 0,
|
|
"groups": [
|
|
{
|
|
"properties": [{"key": "id", "value": 98, "operator": null, "type": "cohort"}],
|
|
"rollout_percentage": 100
|
|
}
|
|
],
|
|
"payloads": { "true": "{\"test\": 1}" }
|
|
},
|
|
"deleted": false,
|
|
"active": true,
|
|
"is_simple_flag": false,
|
|
"rollout_percentage": null
|
|
},
|
|
{
|
|
"id": 2,
|
|
"name": "Beta Feature",
|
|
"key": "beta-feature2",
|
|
"filters": {
|
|
"aggregation_group_type_index": 0,
|
|
"groups": [
|
|
{
|
|
"properties": [
|
|
{
|
|
"key": "region",
|
|
"operator": "exact",
|
|
"value": ["USA"],
|
|
"type": "person"
|
|
}
|
|
],
|
|
"rollout_percentage": 100
|
|
}
|
|
]
|
|
},
|
|
"deleted": false,
|
|
"active": true,
|
|
"is_simple_flag": false,
|
|
"rollout_percentage": null
|
|
}
|
|
],
|
|
"group_type_mapping" : {"0": "company", "1": "project"}
|
|
} |