Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


n/n
description
inputs
expected_result
actual_result
GCE1Get Contract employees without scope
  • owner access_token
  • contract_id
  • 403
403, Your scope does not allow to access this resource. Missing allowances: contract:read
GCE2Get Contract employees by contract which doesn't exist
  • owner access_token
  • contract_id
  • 404
404, not found
GCE3Get Contract employees by contract which doesn't belong to MSP  
  • owner access_token
  • contract_id
  • 403
403, You are not allowed to view this contract
GCE4Get Contract employees by contract with nhs_access token 
  • NHS access_token
  • contract_id
  • 200
200
GCE5Get  contract employees by contract with status TERMINATED 
  • NHS access_token
  • contract_id
  • 200
200
GCE6Get employees filtered  by is_active=true 
  • HR access_token
  • contract_id
  • 200,
  • respond contains data according to apiary
200, return available employees
GCE7Get employees filtered by is_active=false 
  • HR access_token
  • contract_id
  • 200,
  • respond contains data according to apiary
200, return not available employees
GCE8Get employees filtered by employee_id 
  • HR access_token
  • contract_id
  • 200,
  • respond contains data according to apiary
200, return employees by employee_id
GCE9Get employee filtered by division_id
  • HR access_token
  • contract_id
  • 200,
  • respond contains data according to apiary
200, return employees by division_id