Purpose
Service returns list of connections for specified client
Specification
Logic
This service must return list of clients connections for specified client ID. Client connections are restricted by Client ID and its context
Extract client_type from token
Validate specified Client ID according to context:
Mithril Admin - receives all client records
MSP, MIS, PHARMACY - receives only its own client
in case of error generate 403 response ('forbidden')
Prepare response
Query data from mithril.connections for specified Client ID
Hide secret from response
Request structure
API paragraph not found
Authorize
Verify the validity of access token
in case of error return 401 ('Access denied')
Check user scope connection:read in order to perform this action
in case of error generate 403 response ('Invalid scopes')
Headers
Content-Type:application/json
Authorization:Bearer c2778f3064753ea70de870a53795f5c9
API-key:uXhEczJ56adsfh3Ri9SUkc4en
Request data validation
API paragraph not found
Processing
API paragraph not found
Response structure
Example:
Post-processing processes
API paragraph not found