Info |
---|
Note |
Сторінка знаходиться в процесі розробки. Інформація на ній може бути застарілою. |
Info |
---|
/wiki/spaces/EN/pages/17591304241 (remove the link block before publishing the document) |
Table of Contents |
---|
Properties of a REST API method document
Page Properties | ||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||
|
Purpose
This method searches and returns request for registration employee by id. This method uses scopes and context.
...
The legal entity (Owner, HR) can see only employee_requests that were made by this legal entity.
NHS Admin can see all employee_requests
Logic
Description of the working algorithm of the API method and the interaction of services with each other add Service logic (if necessary)N/A
Configuration parameters
Description of the configuration parameters that are used when processing a request in the systemN/A
Dictionaries
POSITION
EMPLOYEE_TYPE
GENDER
+DOCUMENT_TYPE
PHONE_TYPE
COUNTRY
EDUCATION_DEGREE
QUALIFICATION_TYPE
SPECIALITY_TYPE
SPECIALITY_LEVEL
SPEC_QUALIFICATION_TYPE
Input parameters
Input parameter | Mandatory | Type | Description | Example | |
---|---|---|---|---|---|
1 | id |
| String | Required | d290f1ee-6c54-4b01-90e6-d701748f0851 |
2 |
Request structure
See on API-specification
Expand | ||
---|---|---|
| ||
|
Headers
...
Key
...
Value
...
Mandatory
...
Description
...
Example
...
Content-Type
...
application/json
...
M
...
Тип контенту
...
Content-Type:application/json
...
Authorization
...
Bearer c2778f3064753ea70de870a53795f5c9 (string, optional)
...
M
...
Перевірка користувача
...
Authorization:Bearer c2778f3064753ea70de870a53795f5c9 (string, optional)
...
Request data validation
Authorize
Request to process the request using a token in the headers
Validate request
Verify the validity of access token
in case error return 401
Check user scopes in order to perform this action (scope = 'employee_request:read')
in case error return 403
Validate id
Verify id - employee_request_id exists
in case error return 404 (not found employee request in DB with this ID)
Validate context
Get legal_entity.id from '$.context'. Filter employee requests by legal_entity.id
in case error return 404
Processing
A list of processes related to receiving, changing or transmitting data according to the logic defined in the REST APIN/A
Response structure examples
See on API-specification (посилання на сторінку з API-специфікацією)
Description of the REST API response structure, example
Expand | |||||
---|---|---|---|---|---|
| |||||
|
HTTP status codes
Response code | HTTP Status code | Message | Internal name | Description | ||
---|---|---|---|---|---|---|
1 | Базові | |||||
2 | 200 | Response |
| |||
3 | 401 | Access token validation failed | ||||
4 | 401 | Error |
| |||
5 | 403 | Check user scopes in order to perform this action failed | ||||
6 | 7 | 403 | Error | |||
87 | 404 | COMPOSITION_NOT_FOUND_404 | ||||
98 | 404 | Error | ||||
109 | 404 | Get legal_entity.id from '$.context'. Filter employee requests by legal_entity.id failed | ||||
1110 | 404 | Not found employee request in DB with this ID | ||||
12 | 1311 | Специфічні | ||||
1412 |
Post-processing processes
Description of actions performed on data after processing
Technical modules where the method is used
List of pages describing technical N/A
Technical modules where the method is used
Page Properties Report | ||||
---|---|---|---|---|
|
...