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

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

Method searches user in oAuth.

See service spesification.

Sample Request
curl -X GET -H 'Content-Type: application/json' -H 'Authorization:Bearer YW5WcFkyVnFkV2xqWldwMWFXTmxDZzpjY1hwWTR0cWRZbGVjNHAxYUdsMXVJ' 'https://private-31faf6-ehealthapi1.apiary-mock.com/users/employee_request/d290f1ee-6c54-4b01-90e6-d701748f0851'

Authorize

  1. Verify the validity of access token
  2. Check user scop in order to perform this action
    1. In case error - return 401 error

Get email from employee request

  1. Get request_id from activation link 
  2. Invoke private method Get Employee Request by ID and search email in request details
Sample Request
curl -X GET -H 'Content-Type: application/json' 'http:://ehealth.nebo15.com/employee_requests/b075f148-7f93-4fc2-b2ec-2d81b19a9b7b'
    1. if request not found - return 404 error
    2. if request found  - search user in oAuth

Search user in oAuth

Search user in oAuth by email.

Invoke WS - добавить имя метода + ссылка на apiary

  • No labels