ЕСОЗ - публічна документація
Approve declaration
n/n | description | inputs | expected result GraphQl | actual result GraphQl |
---|---|---|---|---|
TD1 | Approve declaration without scopes |
| missing allowance declaration:approve | declaration:approve |
TD2 | Approve declaration by doctor |
| 403 | 401 |
TD3 | Approve declaration by ID doesn't exist |
| not_found | "code": "BAD_REQUEST", "exception": "%{\"error\" => %{\"type\" => \"not_found\"}, \"meta\" => %{\"code\" => 404, \"request_id\" => \"86aceff7-7039-41d5-b6b4-161fdb77f360#15236\", \"type\" => \"object\", \"url\" => \"http://graphql-svc.il/declarations/0e4f17e9-182f-4594-9a83-3a5e6f54a086\"}}" |
TD4 | Approve active declaration |
| CONFLICT invalid status | Incorrect status transition. |
TD5 | Approve inactive declaration |
| CONFLICT invalid status | Incorrect status transition. |
TD6 | Approve pending verification declaration |
| 200, status = `REJECTED`, reason = `manual_person` | 200, ok |
ЕСОЗ - публічна документація