UNPKG

2.72 kBJSONView Raw
1{
2 "swagger": "2.0",
3 "info": {
4 "description": "RippleOSI Middle Tier REST APIs",
5 "version": "1.1.0",
6 "title": "Ripple Showcase Stack - Swagger - Open APIs"
7 },
8 "schemes": ["http"],
9 "tags": [{
10 "name": "Ripple"
11 }],
12 "securityDefinitions": {
13 "QEWDToken": {
14 "description": "For accessing the API a valid token must be passed in all the queries in the 'Cookies' header. A valid token is generated by the /api/initialise API. The following syntax must be used in the 'Cookie' header : JSESSIONID=xxxxxxx",
15 "type": "apiKey",
16 "name": "Authorization",
17 "in": "header"
18 }
19 },
20 "paths": {
21 "/api/initialise": "=> get('initialise.json')",
22 "/api/ui/{uiType}": "=> get('ui.json')",
23 "/api/application" : {
24 "get" : "=> get('application-get.json')",
25 "post": "=> get('application-post.json', 'desc', 'Saves users application settings')",
26 "put": "=> get('application-post.json', 'desc', 'Updates users application settings')"
27 },
28 "/api/user": "=> get('user.json')",
29 "/api/patients": "=> get('patients.json')",
30 "/api/patients/{patientId}/counts": "=> get('patientCounts.json')",
31 "/api/patients/{patientId}/dicom/studies": "=> get('dicomStudies.json')",
32
33 "/api/documents/patient/{patientId}": "=> get('documentsSummary.json')",
34 "/api/documents/patient/{patientId}/{sourceId}": "=> get('documentsDetail.json')",
35 "/api/documents/patient/{patientId}/{host}": "=> get('postDocument.json')"
36
37 },
38 "definitions": {
39 "initialiseResponse": "=> get('initialiseResponse.json')",
40 "uiResponse": "=> get('uiResponse.json')",
41 "applicationPayload": "=> get('applicationPayload.json')",
42 "applicationSaveResponse": "=> get('applicationSaveResponse.json')",
43 "userResponse": "=> get('userResponse.json')",
44 "userError": "=> get('userError.json')",
45 "patientsResponse": "=> get('patientsResponse.json')",
46 "countsResponse": "=> get('countsResponse.json')",
47 "headingPostResponse": "=> get('headingPostResponse.json')",
48 "dicomStudiesResponse": "=> get('dicomStudiesResponse.json')",
49 "documentsSummaryResponse": "=> get('documentsSummaryResponse.json')",
50 "documentsDetailResponse": "=> get('documentsDetailResponse.json')",
51 "postDocumentResponse": "=> get('postDocumentResponse.json')"
52 }
53}