Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents
Status

Page Properties


Specification

Status
colourGreen
titledone

Apiary

Status
colourGreen
titledone

JSON Schema request

Status
colourGrey
titleabsent

JSON Schema response
Status
colourRed
titlespecs


...

  1. Check exist Medication by $.id.

    1. if invalid - return 404 error (message: "Medication is not found!")

Validate

...

type

Purpose validation:  Medication should be active (is_active == TRUE) 

...

Validate `type` == MEDICATION

    1. if invalid  - return 409 eror (message: "Type of record by id is not MEDICATION !")

Prepare & return response data structure

...