Purpose
This WS is designed to search (get list) of Employee roles.
Specification
Logic
Only authenticated and authorized user can use this service
Service returns only employee roles related to the same legal entity as the user
Filters
See on Apiary
Authorize
Verify the validity of access token
Return 401 in case validation fails
Check scopes in order to perform this action (scope = 'employee_role:read')
Return 403 in case invalid scope(s)
Headers
Наприклад:
Content-Type:application/json
Request data validation
API paragraph not found
Processing
Extract client_id from token
Return entries filtered by client_id and query params
Response structure
Service returns only employee roles related to the same legal entity as the user
Example: