Table of Contents |
---|
...
Check exist Substance by $.id.
if invalid - return 404 error (message: "Substance is not found!")
Validate status
Purpose validation: Substance should be active (is_active == TRUE)
- Validate `is_active` == TRUE
- if invalid - return 409 eror (message: "Substance is not active
!")
Prepare & return response data structure
...