ЕСОЗ - публічна документація

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »

Purpose

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

APIary 

create-innm

Input parameters (filters)

  • name
  • innm_identifier

Authorize

  1. Verify the validity of access token
  2. Check user scope (scope = 'innm: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)

Validate unique for Innms

  1. Check unique by `innm_identifier`.
    1. if  found - return 409 error (message: "Duplicate innm identifier!")

Create new Innm

  1. Create new record in innms with status INACTIVE
  2. Fill data
Destination
Source
id
name$.name
innm_identifier$.innm_identifier
status INACTIVE
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
  • No labels