ЕСОЗ - публічна документація
draft_RC_(GraphQL) Get Employee's data (DMS)
Purpose
This WS is designed to allow employee with appropriate scopes to get employee details.
Key points
This is a graphQl query method used in Administration panel only.
Only authenticated and authorized employee with appropriate scope can get employee details data.
User can filter list by search params
Specification
Authorize
Verify the validity of access token
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 = 'employee:read')
Return (403, 'Your scope does not allow to access this resource. Missing allowances: employee:read') in case of invalid scope(s)
Validate legal entity
Extract client_id from token.
Check legal entity status (status = ACTIVE)
In case of error - return
409
('client_id refers to legal entity that is not active')
Service logic
Get employee by id from prm.employees
Render a response according to specification.
Related content
ЕСОЗ - публічна документація