Specification
Input parameters
- name
- code
- category
- requestAllowed
- isComposition (not used yet)
...
- Verify the validity of access token
- Check user scope (scope = 'service_catalog:write') in order to perform this action
- In case error - generate 401 response
Validate request
Validate request using features.Code is a unique field where
Validate code
- Check that all elements in array of code are different where services.is_active = True.
- in case of error return 422 error (message `codes are duplicated`)
Create new Innm
- Create new record in `innms`
- Fill data
Destination | Source |
---|---|
id | |
name | $.name |
code | $.code |
is_active | TRUE |
category | $.category |
is_composition | $.is_composition |
request_allowed | $.request_allowed |
inserted_at | :timestamp |
inserted_by | user_id |
updated_at | :timestamp |
updated_by | user_id |