Optional
realtime: RealtimeRetrieve a specific feature toggle with value for current tenant.
Example
(async () => {
const featureToggleKey = 'my-custom-feature';
const {data, res} = await featureService.detail(featureToggleKey);
})();
Retrieve list of feature toggles with values for current tenant.
Example
const filter = {
pageSize: 1000,
withTotalPages: true
};
(async () => {
const {data, res, paging} = await featureService.list(filter);
})();
Update a specific feature toggle value for current tenant.
Example
(async () => {
const featureToggleKey = 'my-custom-feature';
const {data, res} = await featureService.updateFeature({
key: featureToggleKey,
active: true,
});
This class allows reading a feature toggles for current tenant.