Required parameters are marked with "*"
Якщо інформації по відповідному параметру немає, потрібно зазначити: “API paragraph not found”.
Purpose*
This WS is designed to return INNM detail.
Specification*
Logic*
Method returns Medication details by ID.
Input parameters
Input parameter | Values | Type | Description | Example |
---|---|---|---|---|
id | String |
|
Request structure*
API paragraph not found
Authorize*
Request to process the request using a token in the headers
Headers*
Наприклад:
Content-Type:application/json
Authorization:Bearer c2778f3064753ea70de870a53795f5c9
Request data validation*
Validate PK Medication
Purpose validation: Check on existing Medication record
Check exist Medication by $.id.
if invalid - return 404 error (message: "Medication is not found!")
Validate type
Purpose validation: Medication should be necessary type
Validate `type` == MEDICATION
if invalid - return 409 eror (message: "Type of record by id is not MEDICATION !")
Processing*
Logic WS
Verify the validity of access token
Check user scopes in order to perform this action (scope = 'medication:read')
Response structure*
See on Apiary
Example:
Post-processing processes*
API paragraph not found