REST API method / Метод REST API (настанова) (remove the link block before publishing the document)
Properties of a REST API method document
Purpose
This method returns a list of all available already created capitation reports
Logic
N/A
Configuration parameters
N/A
Dictionaries
N/A
Input parameters
Input parameter | Mandatory | Type | Description | Example | |
---|---|---|---|---|---|
1 | |||||
2 |
Request structure
See on API-specification
Headers
Request data validation
Authorize
Verify the validity of access token
in case of error return 401 ('Access denied')
Check user scope capitation_report:read in order to perform this action
in case of error generate 401 response ('Invalid scopes')
Verify role
Extract from token:
Validate client_id (is_blocked=false)
in case of error return 403 Error ('Client is blocked')
In case WS was called by MSP check contractor_legal_entity is active
in case error return 403 - ('Client is not active')
Processing
N/A
Response structure examples
Return array of existing reports according to Apiary and Capitation Report Data Structure
See on API-specification
HTTP status codes
Response code | HTTP Status code | Message | Internal name | Description | |
---|---|---|---|---|---|
1 | Базові | ||||
2 | 401 | Access denied | |||
3 | 401 | Invalid scopes | |||
4 | 403 | Client is blocked | |||
5 | 403 | Client is not active | |||
6 | Специфічні | ||||
7 |
Post-processing processes
N/A
Technical modules where the method is used
List of pages describing technical modules where the method is used