ЕСОЗ - публічна документація
(GraphQL) Search Rule engine rules by params
Purpose
This WS allows to find rule engine rules in Admin panel using search params.
Key points
This is a graphQl query method used in Administration panel only.
Only authenticated and authorized NHS employee with appropriate scope can search Rule engine rules.
Specification
Link | API paragraph not found | Посилання на Apiary або Swagger |
Resource | API paragraph not found | Посилання на ресурс, наприклад: /api/persons/create |
Scope | rule_engine_rule:details | Scope для доступу |
Components | API paragraph not found | Зазначається перелік бізнес компонентів, які використовують цей метод, наприклад: ePrescription |
Microservices | API paragraph not found | Перелік мікросервісів, які використовує метод API, наприклад: Auth, ABAC |
Protocol type | API paragraph not found | Тип протоколу, який використовується запитом, наприклад: SOAP | REST |
Request type | API paragraph not found | Тип запиту API, наприклад: GET, POST, PATCH… |
Sync/Async | API paragraph not found | Метод є синхронним чи асинхронним? |
Public/Private/Internal | API paragraph not found | Потрібно зазначити тип методу за ступенем доступності |
Logic
Render a response according to search params.
Authorize
Verify the validity of access token
in case of error - return 401 (“Invalid access token”) in case of validation fails
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:details')
return 403 (“Your scope does not allow to access this resource. Missing allowances: rule_engine_rule:details”) in case of invalid scope(s)
Header
API paragraph not found
Request data validation
Validate legal entity
Extract client_id from token.
Check client scopes in order to perform this action (scope = 'rule_engine_rule:details')
in case of error - return 403 (“Your scope does not allow to access this resource. Missing allowances: rule_engine_rule:details”)
Check client type (type = NHS)
In case of error - return 403 ('You don't have permission to access this resource')
Processing
Search with a few params performs according to the logical AND rule.
id. Search by rule_engine_rules.id (used to get rule engine rule details)
name. Search by rule_engine_rules.name
is_active. Search by rule_engine_rules.is_active
code.system. Searches by rule_engine_rules.code.system
code.value. Searches by rule_engine_rules.code.value
Response structure
API paragraph not found
Post-processing processes
API paragraph not found
HTTP status codes
API paragraph not found
ЕСОЗ - публічна документація