Purpose
This WS allows to get list of rule engine rules without rules details. Used to get by id, name or code of the rule engine rule.
Key points
This is a REST method used by MIS.
Only authenticated and authorized employee with appropriate scope can get rule engine rules list.
Specification
Validations
Authorization
Verify the validity of the access token
in case of error - return 401 (“Invalid access token”)
Verify that token is not expired
in case of error - return 401 (“Invalid access token”)
Check user scopes in order to perform this action (scope = 'rule_engine_rule:read')
in case of invalid scope(s) - return 403 (“Your scope does not allow to access this resource. Missing allowances: rule_engine_rule:read”)
Search params
name. Search by rule_engine_rules.name
code. Searches by rule_engine_rules.code.code
system. Searches by rule_engine_rules.code.system
Service logic
Filter rule_engine_rules
with is_active=true status
by search params
Render a response according to specification.