n/n | Description | Inputs | Expected Result | Step by Step Script | Actual Result |
---|---|---|---|---|---|
Create Substance |
| Response 201 Substance saved to DB with status is_active=true | |||
Create substance not by NHS Admin |
| Response 403 Message: Your scope does not allow to access this resource. Missing allowances: substance:write" | |||
Create substance with name exists in DB |
| Response 422 Message: has already been taken | |||
Create new substance without name |
| Response 422 message: can't be blank | |||
Create new substance without name |
| Responce 422 message: required property name was not present | |||
Create substance without scopes |
| Responce 401 message: Authorization header is not set or doesn't contain Bearer token |
ЕСОЗ - публічна документація
General
Content
Integrations