This repository was archived by the owner on Mar 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathOntoserver-Keycloak.postman_collection.json
More file actions
231 lines (231 loc) · 8.59 KB
/
Copy pathOntoserver-Keycloak.postman_collection.json
File metadata and controls
231 lines (231 loc) · 8.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
{
"info": {
"_postman_id": "ca0818ec-a144-4c17-8cae-55a8f5cd8d6a",
"name": "Ontoserver-Keycloak",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "with auth (set on the folder level)",
"item": [
{
"name": "upstream feed",
"event": [
{
"listen": "test",
"script": {
"id": "19dc367d-919b-4c05-91fa-0a4955c7ebe5",
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{onto}}/api/upstream.xml",
"host": [
"{{onto}}"
],
"path": [
"api",
"upstream.xml"
]
}
},
"response": []
},
{
"name": "syndication feed",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{onto}}/synd/syndication.xml",
"host": [
"{{onto}}"
],
"path": [
"synd",
"syndication.xml"
]
}
},
"response": []
},
{
"name": "CodeSystem",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{onto}}/fhir/CodeSystem",
"host": [
"{{onto}}"
],
"path": [
"fhir",
"CodeSystem"
]
}
},
"response": []
},
{
"name": "create CodeSystem",
"request": {
"method": "PUT",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"resourceType\": \"CodeSystem\",\r\n \"id\": \"example\",\r\n \"meta\": {\r\n \"profile\": [\r\n \"http://hl7.org/fhir/StructureDefinition/shareablecodesystem\"\r\n ]\r\n },\r\n \"text\": {\r\n \"status\": \"generated\",\r\n \"div\": \"<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\">\\n <p>CodeSystem "ACME Codes for Cholesterol": This is an example code system that includes \\n all the codes for serum cholesterol defined by ACME inc.</p>\\n <p>Developed by: FHIR project team (example)</p>\\n <p>Published for testing on 28-Jan 2016</p>\\n <p>This code system defines all the ACME codes for serum cholesterol:</p>\\n <table class=\\\"grid\\\">\\n <tr>\\n <td>\\n <b>Code</b>\\n </td>\\n <td>\\n <b>Display</b>\\n </td>\\n <td>\\n <b>Definition</b>\\n </td>\\n </tr>\\n <tr>\\n <td>chol-mmol</td>\\n <td>SChol (mmol/L)</td>\\n <td>Serum Cholesterol, in mmol/L</td>\\n </tr>\\n <tr>\\n <td>chol-mass</td>\\n <td>SChol (mg/L)</td>\\n <td>Serum Cholesterol, in mg/L</td>\\n </tr>\\n <tr>\\n <td>chol</td>\\n <td>SChol</td>\\n <td>Serum Cholesterol</td>\\n </tr>\\n </table>\\n </div>\"\r\n },\r\n \"url\": \"http://hl7.org/fhir/CodeSystem/example\",\r\n \"identifier\": [\r\n {\r\n \"system\": \"http://acme.com/identifiers/codesystems\",\r\n \"value\": \"internal-cholesterol-inl\"\r\n }\r\n ],\r\n \"version\": \"20160128\",\r\n \"name\": \"ACMECholCodesBlood\",\r\n \"title\": \"ACME Codes for Cholesterol in Serum/Plasma\",\r\n \"status\": \"draft\",\r\n \"experimental\": true,\r\n \"date\": \"2016-01-28\",\r\n \"publisher\": \"Acme Co\",\r\n \"contact\": [\r\n {\r\n \"name\": \"FHIR project team\",\r\n \"telecom\": [\r\n {\r\n \"system\": \"url\",\r\n \"value\": \"http://hl7.org/fhir\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"description\": \"This is an example code system that includes all the ACME codes for serum/plasma cholesterol from v2.36.\",\r\n \"caseSensitive\": true,\r\n \"content\": \"complete\",\r\n \"filter\": [\r\n {\r\n \"code\": \"acme-plasma\",\r\n \"description\": \"An internal filter used to select codes that are only used with plasma\",\r\n \"operator\": [\r\n \"=\"\r\n ],\r\n \"value\": \"the value of this filter is either 'true' or 'false'\"\r\n }\r\n ],\r\n \"concept\": [\r\n {\r\n \"code\": \"chol-mmol\",\r\n \"display\": \"SChol (mmol/L)\",\r\n \"definition\": \"Serum Cholesterol, in mmol/L\",\r\n \"designation\": [\r\n {\r\n \"use\": {\r\n \"system\": \"http://acme.com/config/fhir/codesystems/internal\",\r\n \"code\": \"internal-label\"\r\n },\r\n \"value\": \"From ACME POC Testing\"\r\n }\r\n ]\r\n },\r\n {\r\n \"code\": \"chol-mass\",\r\n \"display\": \"SChol (mg/L)\",\r\n \"definition\": \"Serum Cholesterol, in mg/L\",\r\n \"designation\": [\r\n {\r\n \"use\": {\r\n \"system\": \"http://acme.com/config/fhir/codesystems/internal\",\r\n \"code\": \"internal-label\"\r\n },\r\n \"value\": \"From Paragon Labs\"\r\n }\r\n ]\r\n },\r\n {\r\n \"code\": \"chol\",\r\n \"display\": \"SChol\",\r\n \"definition\": \"Serum Cholesterol\",\r\n \"designation\": [\r\n {\r\n \"use\": {\r\n \"system\": \"http://acme.com/config/fhir/codesystems/internal\",\r\n \"code\": \"internal-label\"\r\n },\r\n \"value\": \"Obdurate Labs uses this with both kinds of units...\"\r\n }\r\n ]\r\n }\r\n ]\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{onto}}/fhir/CodeSystem/example",
"host": [
"{{onto}}"
],
"path": [
"fhir",
"CodeSystem",
"example"
]
}
},
"response": []
}
],
"auth": {
"type": "oauth2",
"oauth2": [
{
"key": "accessToken",
"value": "{{token}}",
"type": "string"
},
{
"key": "tokenType",
"value": "bearer",
"type": "string"
},
{
"key": "addTokenTo",
"value": "header",
"type": "string"
}
]
},
"event": [
{
"listen": "prerequest",
"script": {
"id": "e7841f42-46bf-4f6c-9ff9-99327ba643fe",
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"id": "fa1cbd6b-5241-4633-97d3-15afc26569c6",
"type": "text/javascript",
"exec": [
"pm.test(\"Status code not 401 or 403\", function () {",
" pm.expect(pm.response.code).to.not.be.oneOf([401, 403]);",
"});",
"",
"var responseJson;",
"if (pm.response.text().startsWith(\"<?xml\")) {",
" responseJson = xml2Json(pm.response.text());",
"} else {",
" responseJson = pm.response.json();",
"}",
"",
"pm.test(\"No invalid token error\", function() {",
" if (responseJson.error) {",
" if (!responseJson.error_description.startsWith(\"Access token expired\"))",
" pm.expect(responseJson.error).to.not.equal(\"invalid_token\", \"Check your public RS256 key in docker-compose.yml!\")",
" }",
"});",
"",
"pm.test(\"No expired token\", function() {",
" if (responseJson.error) {",
" if (!responseJson.error_description.startsWith(\"Cannot convert access token\"))",
" pm.expect(responseJson.error).to.not.equal(\"invalid_token\", \"The token is expired\")",
" }",
"});"
]
}
}
],
"protocolProfileBehavior": {}
},
{
"name": "fhir Metadata",
"event": [
{
"listen": "test",
"script": {
"id": "59fd465f-0970-40fc-a3bf-861f265111b3",
"exec": [
"pm.test(\"Conformance includes security\", function () {\r",
" var jsonData = pm.response.json();\r",
" console.log(jsonData.rest[0].security)\r",
" pm.expect(jsonData.rest[0].security.extension[0]).to.be.not.null;\r",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{onto}}/fhir/metadata",
"host": [
"{{onto}}"
],
"path": [
"fhir",
"metadata"
]
}
},
"response": []
}
],
"event": [
{
"listen": "prerequest",
"script": {
"id": "b9a7e866-7965-44cf-b111-d0b2a0b46b46",
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"id": "cec13fc6-14cc-44a8-ad6e-cf173d5cf2e0",
"type": "text/javascript",
"exec": [
""
]
}
}
],
"protocolProfileBehavior": {}
}