Purpose
This method is designed to generate links to media storage for thirds parties as a part of:
ambulatory contracts process
Specification
WS logic
Only authenticated and authorized user can use this service
All files will be stored in separated bucket
Configuration
Create new separated bucket for such files
Bucket name - ambulatory_contracts_prod
Authentication
Verify the validity of api-key
Return 401 in case validation fails
Check scopes in order to perform this action (scope = 'private_contracts:write')
Return 403 in case invalid scope(s)
Validations
Validate request using JSON schema
Return 422 in case validation fails
Process
Invoke AEL rpc - generate secure link for requested action, resource_id and resource_name in configured bucket