Palbase Flags
Palbase's flags module: a project's feature flags and remote configuration — typed values, the choices a string flag allows, conditions that target a value at a client context, a share of users, a country or a moment, and values given to single users — read by its apps, resolved for each reader, and kept up to date by deltas and realtime notices (flags:<ref> for every reader, flags:<ref>:<user_id> for one user). Definitions may change directly, or, once publishing is on, only through a reviewed and published template. Which builds of its apps are in use is counted from the reads. One shared, multi-tenant service: every replica caches the projects it serves, and a change on one drops them on every other.
Two doors. A client app reads with the publishable key, and a signed-in user's token makes the answer theirs. The project's server defines flags, sets users' values, publishes and reads installations with its secret key (apikey, role service_role).
Countries are resolved with DB-IP's IP to City Lite database: IP geolocation by DB-IP (https://db-ip.com), CC BY 4.0.
The contract itself: /openapi/flags.openapi.json
Reads
Users
Evaluations
Experiments
/flags/experimentsList experimentsPOST/flags/experimentsStart an experimentGET/flags/experiments/{experiment_id}Read an experimentGET/flags/experiments/{experiment_id}/resultsRead an experiment's resultsPOST/flags/experiments/{experiment_id}/stopStop an experimentPOST/flags/experiments/{experiment_id}/winnerDeclare an experiment's winnerInstallations
Definitions
Templates
/flags/templates/activationTurn publishing onGET/flags/templates/activeRead the active versionGET/flags/templates/capabilitiesRead the publishing stateGET/flags/templates/draftRead the draftPOST/flags/templates/draftStart a draftDELETE/flags/templates/draftDiscard the draftPUT/flags/templates/draft/parameters/{key}Write a draft parameterDELETE/flags/templates/draft/parameters/{key}Remove a draft parameterGET/flags/templates/draft/reviewReview the draftPOST/flags/templates/publishPublish the draftPOST/flags/templates/publish/receiptRead a publication's receiptPOST/flags/templates/restore/{version}Restore a versionGET/flags/templates/versionsList the versionsGET/flags/templates/versions/{version}Read a version