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

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

Version 1 Next »

n/n
description
inputs
expected result GraphQlactual result GraphQl
TD1Reject declaration without scopes
  • token
missing allowance declaration:rejectmissing allowance declaration:reject
TD2Reject declaration  by doctor 
  • doctor token
403401, Invalid access token
TD3Reject declaration  by ID doesn't exist
  • token
  • invalid id 
not_found"code": "BAD_REQUEST",
"exception": "%{\"error\" => %{\"type\" => \"not_found\"}, \"meta\" => %{\"code\" => 404, \"request_id\" => \"86aceff7-7039-41d5-b6b4-161fdb77f360#15195\", \"type\" => \"object\", \"url\" => \"http://graphql-svc.il/declarations/c33a08eb-5162-4d56-9d57-7b49a4c93a42\"}}"
TD4Reject active declaration
  • token
CONFLICT invalid status

Validation error, Incorrect status transition.

TD5Reject inactive declaration 
  • token
  • status - inactive
CONFLICT invalid statusValidation error, Incorrect status transition
TD6Reject pending verification declaration 
  • token
  • valid person id
200, status = `REJECTED`, reason = `manual_person`

200, status= `REJECTED`

  • No labels