/wiki/spaces/EN/pages/17591304241 (remove the link block before publishing the document)
Properties of a REST API method document
Purpose
This service should be used for internal services/processes. Used without access_token
Logic
Configuration parameters
Dictionaries
Input parameters
Input parameter | Mandatory | Type | Description | Example | |
---|---|---|---|---|---|
1 | id |
| String | Request | d290f1ee-6c54-4b01-90e6-d701748f0851 |
2 |
Request structure
See on API-specification
Headers
Request data validation
Authorize
Used without access_token
If client knows the employee_request_ID he can create user and approve it.
Processing
Get Employee Request Details
Invoke WS Get Employee Request by ID for further employee creation
See service specification
Sample Request
curl -X GET -H 'Content-Type: application/json' 'http://ehealth.nebo15.com/employee_requests/d290f1ee-6c54-4b01-90e6-d701748f0851'
Search User
Search user in Auth using email from Employee_Request.
If found, goto Create user
else return Error 401
Create user in oAuth
System should create user in oAuth by using Create User WS
email should be used from the employee_request
password should be used from the payload
See service specification
Response structure examples
See on API-specification
HTTP status codes
Response code | HTTP Status code | Message | Internal name | Description | |
---|---|---|---|---|---|
1 | Базові | ||||
2 | 201 | Response |
| ||
3 | 401 |
| Search user error |
| |
4 | Специфічні | ||||
5 |