ЕСОЗ - публічна документація
REST API Search Person's merged persons [API-010-001-003-0361]
- 1 Properties of a REST API method document
- 2 Purpose
- 3 Logic
- 4 Configuration parameters
- 5 Dictionaries
- 6 Input parameters
- 7 Request structure
- 8 Headers
- 9 Request data validation
- 9.1 Authorize
- 10 Processing
- 11 Response structure examples
- 12 HTTP status codes
- 13 Post-processing processes
- 14 Technical modules where the method is used
Properties of a REST API method document
Document type | Метод REST API |
---|---|
Document title | [DRAFT] REST API Search Person's merged persons [API-010-001-003-0361] |
Guideline ID | GUI-0011 |
Author | @Yuliia Mazur (UA SoE eHealth) |
Document version | 1 |
Document status | DRAFT |
Date of creation | ХХ.ХХ.ХХХХ (дата фінальної версії документа – RC або PROD) |
Date of update | ХХ.ХХ.ХХХХ (дата зміни версії) |
Method API ID | API-010-001-003-0361 |
Microservices (namespace) | MPI, IL, ADMIN-FE |
Component | Person |
Component ID | COM-010-001 |
Link на API-специфікацію | |
Resource | {{host}}api.ehealth.gov.ua/api/persons/id/merged_persons |
Scope | person:read |
Protocol type | REST |
Request type | GET |
Sync/Async | Sync |
Public/Private | Public |
Purpose
This method allows finding all persons, which were merged with this person. Also, this endpoint shows all the persons who enter the whole chain of merges to this person.
Logic
N/A
Configuration parameters
N/A
Dictionaries
GENDER
PHONE_TYPE
Input parameters
Input parameter | Mandatory | Type | Description | Example | |
---|---|---|---|---|---|
1 | id | M | String |
| Example: |
2 | status | O | String |
| Example: |
Request structure
Headers
Key | Value | Mandatory (M/O) | Description | Example |
---|---|---|---|---|
Content-Type | application/json | M | Вказує формат даних у тілі запиту/відповіді | Content-Type: application/json |
Authorization | Bearer {{access_token}} | M | Вказує токен авторизації для доступу | Authorization: Bearer Token |
Api-key | {{secret}} | M |
| uXhEczJ56adsfh3Ri9SUkc4en |
X-Custom-PSK | {{pre_shared_key}} | M | Попередньо узгоджений ключ для аутентифікації | X-Custom-PSK |
Request data validation
Authorize
Request to process the request using a token in the headers
Processing
N/A
Response structure examples
Example:
HTTP status codes
Response code | HTTP Status code | Message | Internal name | Description | |
---|---|---|---|---|---|
1 | Базові | ||||
2 |
| 200 | Response |
| Надано відповідь |
3 |
| 404 | Such person not found |
| Особа не знайдена |
4 | Специфічні | ||||
5 |
|
|
|
|
|
Post-processing processes
N/A
Technical modules where the method is used
Related content
ЕСОЗ - публічна документація