Generic rule service to maintain and evaluate rules as REST service.
Operator | Supported |
---|---|
'>' | Yes |
< | Yes |
>= | Yes |
<= | Yes |
== | Yes |
!= | Yes |
in | Yes |
not_in | Yes |
- step 1: change MongoURL in config/config.yaml
- step 2: dep ensure
- step 3: go run main.go
Postman Collection Link: https://github.com/nimesh-mittal/rule_service/blob/master/ruleset.postman_collection.json
- Create Ruleset
- List Ruleset
- Update Ruleset
- Delete Ruleset
- Get Ruleset By ID
- Evaluate Ruleset: Takes ruleset id and record and return matching rule with modified record
Adding new strategy to pick one out of multiple matching rules