Status
Purpose
This WS is designed to describe the process of creating new medical program.
APIary
Input parameters
- name
- is_active
Authorize
- Verify the validity of access token
- Check user scope (scope = 'medical_programs:write') in order to perform this action
- In case error - generate 401 response
Validate request (JSON schema)
- Validate request using JSON schemas (TBD):
- Return 422 with list of validation errors in case validation fails (422 EView)
Create new Medical Program
- Create new record in Medical_programs
- Fill data
Destination | Source |
---|---|
id | |
name | $.name |
is_active | $.is_active |
inserted_at | :timestamp |
inserted_by | user_id |
updated_at | :timestamp |
updated_by | user_id |
Prepare & return response data structure
- Fill response WS data structure
- Validate response using JSON schemas (TBD)
- Return 422 with list of validation errors in case validation fails (422 EView)