- Each
featurecan beenabled or disabled - Each rule per feature can have
attr,op, &valuesvalue/values list. Rule Grouplogic for keysall&anynot implemented - see #13 for intended / expected implementation details.
feature:
new-checkout:
enabled: true
ruleGroups:
all:
- { attr: country, op: IN, values: [ "ES", "PT" ] }
- { attr: appVersion, op: GTE, values: [ "120" ] }
any:
- { attr: tier, op: IN, values: [ "gold", "platinum" ] }
search-v2:
enabled: false
beta-banner:
enabled: true
old-checkout:
enabled: true
ruleGroups:
all:
- { attr: country, op: IN, values: [ IRL ] }
any:
- { attr: tier, op: IN, values: [ gold, platinum ] }mvn clean install spring-boot:runhttp://localhost:8080/api/executetask
- If Match, Return list of rules returned with HTTP Status 200
- else empty list & 400 Bad Request
http://localhost:8080/api/test
["ES","PT"]
http://localhost:8080/api/eval?feature=new-checkout&country=IE&appVersion=1&tier=2
http://localhost:8080/api/eval?feature=new-checkout&country=PT&appVersion=120&tier=2
http://localhost:8080/api/eval?feature=new-checkout&country=ES&appVersion=400&tier=2
http://localhost:8080/api/eval?feature=new-checkout&country=ES&appVersion=100&tier=2
http://localhost:8080/api/eval?feature=old-checkout&country=IRL&appVersion=100&tier=gold
http://localhost:8080/api/eval?feature=new-checkout&country=PT&appVersion=140&tier=gold
http://localhost:8080/api/eval?feature=search-v2&country=PT&appVersion=140&tier=gold
http://localhost:8080/