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

Skip to end of metadata
Go to start of metadata

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

Compare with Current View Version History

Version 1

Purpose

This WS is designed to return Medical Program detail.

Specification

Apiary

Authorization

  • Verify the validity of access token

    • in case of error - return 401 (“Invalid access token”) in case of validation fails

  • Verify that token is not expired

    • in case of error - return 401 (“Invalid access token”)

  • Check user scopes in order to perform this action (scope = 'medical_program:read')

    • return 403 (“Your scope does not allow to access this resource. Missing allowances: medical_program:read”) in case of invalid scope(s)

Validate Medical Program

  • Get Medical Program identifier from the URL

  • Check it exists in DB

    • in case of error - return 404 error (message: "Medical program does not exist ")

Service logic

  • Get Medical Program by id

  • Render a response according to specification

  • No labels