ЕСОЗ - публічна документація

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

n/n
Description
Inputs
expected result
actual  result
1Update Assignee without scope
  • token
  • id
  • json
403403, Your scope does not allow to access this resource. Missing allowances: contract_requests:update
2Update Assignee with Contract Request status<>'NEW/IN_PROCESS'
  • token 
  • id request in status<>'NEW/IN_PROCESS'
409, Incorrect status of contract_request to modify it409, Incorrect status of contract_request to modify it
3Update Assignee with non existing contract request 
  • token 
  • non existing id
404
404, not found
4Update Assignee with not valid  contract request ID
  • token
  • not valid contract request ID
403 403, forbidden
5Assign employee from another LE
  • token
  • id
  • incorrect employee_id
422, 'Invalid legal entity id'

422, Employee doesn't belong to legal_entity

6Assign dismissed employee
  • token
  • id
  • incorrect employee status

409Invalid employee status

422, Employee must be active

7Assign employee who doesn't have required role 
  • token
  • id
  • incorrect employee role
403, 'Employee doesn't have required role'403, Employee doesn't have required role
8Assign valid employee for valid request 
  • token
  • id
  • assignee_id

200, status = 'IN_PROCESS',

event added to event_manager

200, IN_PROGRES

9Reassign another valid employee
  • token
  • id
  • assignee_id
 

200, status = 'IN_PROCESS',

event added to event_manager

 

200, IN_PROGRES

  • No labels