Versions Compared

Key

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

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

Table of Contents
Status

  • Specification 
    Status
    colourGreen
    titledone
  • Apiary 
    Status
    colourGreen
    titleDone

Purpose

This WS is designed to create new Substance (post).

APIary 

add-substance

Input parameters (filters)

  • name
  • name_original
  • sctid

Authorize

  1. Verify the validity of access token
  2. Check user scope (scope = 'substanse:write') in order to perform this action
    1. In case error - generate 401 response

Validate request (JSON schema)

Validate request using JSON schema (link !!! TBD)

Create new Substance

  1. Create new record in innms with status INACTIVE
  2. Fill data


Destination
Source
id
name$.name
name_original$.name_original
sctid$.sctid
is_active TRUE
inserted_at:timestamp
inserted_byuser_id
updated_at:timestamp
updated_byuser_id


Return data structure

  1. Fill response data structure
    • id
    • name
    • innm_identifier
    • status