Purpose
This method allows to get all existing in legal entity contracts with GB_CBP type through the MIS
Specification
WS logic
Only authenticated and authorized user can use this service
Deleted records won't be shown in response
Authorize
Verify the validity of api-key
Return 401 in case validation fails
Verify the validity of token
Return 401 in case validation fails
Check scopes in order to perform this action (scope = 'private_contracts:read')
Return 403 in case invalid scope(s)
Process
Search contracts in DB according to requested query parameters
If contractor_legal_entity_id from contract according to requested parameters not equal client_id from token, show 404 Not found instead
Exclude deleted records (is_active = false)