Table of Contents |
---|
Purpose
Method returns a list of merge requests. Service returns only merge requests related to the same legal entity as the user
Specification
Page Properties | ||
---|---|---|
| ||
...
|
Logic
Only authenticated and authorized SPECIALIST, ASSISTANT or RECEPTIONIST employees can use this WS.
Usage of this WS allowed in EMERGENCY or OUTPATIENT legal entities.
Service returns only merge requests related to the same legal entity as the user
Search by next parameters allowed:
status
master_person_id
merge_person_id
...
Filters
See on Apiary
Request structure
API paragraph not found
Authorize
Verify the validity of access token
Return 401 in case validation fails
Check scopes in order to perform this action (scope = 'merge_request:read')
Return 403 in case invalid scope(s)
Headers
Наприклад:
Content-Type:application/json
Authorization:Bearer c2778f3064753ea70de870a53795f5c9
api-key:uXhEczJ56adsfh3Ri9SUkc4en
Request data validation
API paragraph not found
Processing
Prepare response
Service returns only merge requests related to the same legal entity as the user
Extract client_id from token
Return entries filtered by legal_entity_id and query params from merge_requests table
Response structure
See on Apiary
Example:
Expand | ||
---|---|---|
| ||
|
Post-processing processes
API paragraph not found
HTTP status codes
Page Properties | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|