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

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 3 Next »

Specification

Schema

Features

Input parameters

  • name
  • code
  • category
  • requestAllowed
  • isComposition (not used yet)

Authorize

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

Validate request

Validate request using features.

Validate code

  1. Check that all elements in array of code are different  where services.is_active = True.
    1. in case of error return 422 error (message `codes are duplicated`)

Create new Innm

  1. Create new record in `innms`
  2. Fill data
Destination
Source
id
name$.name
code$.code
is_activeTRUE
category$.category
is_composition$.is_composition
request_allowed$.request_allowed
inserted_at:timestamp
inserted_byuser_id
updated_at:timestamp
updated_byuser_id


  • No labels