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

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

Version 1 Next »

Purpose

This method is designed to generate links to media storage for thirds parties as a part of:

  • ambulatory contracts process

Specification

Apiary

WS logic

  1. Only authenticated and authorized user can use this service

  2. All files will be stored in separated bucket

  1. Create new separated bucket for such files

  2. Bucket name - ambulatory_contracts_prod

  1. Verify the validity of api-key

    1. Return 401 in case validation fails

  2. Check scopes in order to perform this action (scope = 'private_contracts:write')

    1. Return 403 in case invalid scope(s)

  1. Validate request using JSON schema

    1. Return 422 in case validation fails

  1. Invoke AEL rpc - generate secure link for requested action, resource_id and resource_name in configured bucket

  • No labels