Table of Contents |
---|
- Specification
Status colour Green title done - Apiary
Status colour Green title Done - JSON Schema Schema request
Status colour Red title specs - JSON Schema response
Status colour Red title specs
...
- Verify the validity of access token
- Check user scope (scope = 'substanse:write') in order to perform this action
- In case error - generate 401 response
...
Validate request using JSON schema (link !!! TBD)
Create new Substance
- Create new record in innms with status INACTIVE
- Fill data
Destination | Source |
---|---|
id | |
name | $.name |
name_original | $.name_original |
sctid | $.sctid |
is_active | TRUE |
inserted_at | :timestamp |
inserted_by | user_id |
updated_at | :timestamp |
updated_by | user_id |
Return data structure
- Fill response data structure
- id
- name
- innm_identifier
- status