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
Logic
Filter rule_engine_rules
with is_active=true status
by search params
Render a response according to specification.
Request structure
See on Apiary
Filters
Filter | Values | Type | Description | Example |
---|---|---|---|---|
name | String | Rule engine rule name |
| |
system | String | Code of rule engine rule system from dictionary |
| |
code | String | Code of rule engine rule from dictionary specified in the system |
| |
page | Number | Page number |
| |
page_size | Number | A limit on the number of objects to be returned, between 1 and 100. Default: 50 |
|
Authorize
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”)
Headers
Content-Type:application/json
Request data validation
Processing
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
Response structure
See on Apiary