Skip to content

Commit 1f6a25a

Browse files
authored
AEA-3387 initial postman collection (#88)
1 parent c9bb40b commit 1f6a25a

File tree

1 file changed

+352
-0
lines changed

1 file changed

+352
-0
lines changed
Lines changed: 352 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,352 @@
1+
{
2+
"info": {
3+
"_postman_id": "53baab19-cdbd-45ed-beda-2ba288c73c20",
4+
"name": "prescriptions for patients",
5+
"description": "This contains a collection for interacting with the prescriptions for patients API\n\nTo use it you should define environments with the following variables\n\n- host\n- cilent_id\n- client_secret\n \n\nTo use the PULL REQUEST calls, you should create a variable called pull_request_id that is the number of the pull request\n\nThe endpoints are secured using oauth2. In dev environments, you can go to the authorization tab of the request and select get new access token. This will open a new window where you can put in one of the test NHS numbers",
6+
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
7+
"_exporter_id": "69771"
8+
},
9+
"item": [
10+
{
11+
"name": "getMyPrescriptions",
12+
"request": {
13+
"auth": {
14+
"type": "oauth2",
15+
"oauth2": [
16+
{
17+
"key": "tokenName",
18+
"value": "nhs identity token",
19+
"type": "string"
20+
},
21+
{
22+
"key": "clientId",
23+
"value": "{{client_id}}",
24+
"type": "string"
25+
},
26+
{
27+
"key": "clientSecret",
28+
"value": "{{client_secret}}",
29+
"type": "string"
30+
},
31+
{
32+
"key": "scope",
33+
"value": "nhs-login",
34+
"type": "string"
35+
},
36+
{
37+
"key": "redirect_uri",
38+
"value": "https://example.org/",
39+
"type": "string"
40+
},
41+
{
42+
"key": "useBrowser",
43+
"value": false,
44+
"type": "boolean"
45+
},
46+
{
47+
"key": "state",
48+
"value": "{{$randomUUID}}",
49+
"type": "string"
50+
},
51+
{
52+
"key": "accessTokenUrl",
53+
"value": "https://internal-dev.api.service.nhs.uk/oauth2-mock/token",
54+
"type": "string"
55+
},
56+
{
57+
"key": "authUrl",
58+
"value": "https://internal-dev.api.service.nhs.uk/oauth2-mock/authorize",
59+
"type": "string"
60+
},
61+
{
62+
"key": "client_authentication",
63+
"value": "body",
64+
"type": "string"
65+
},
66+
{
67+
"key": "addTokenTo",
68+
"value": "header",
69+
"type": "string"
70+
}
71+
]
72+
},
73+
"method": "GET",
74+
"header": [],
75+
"url": {
76+
"raw": "https://{{host}}/prescriptions-for-patients/getMyPrescriptions",
77+
"protocol": "https",
78+
"host": [
79+
"{{host}}"
80+
],
81+
"path": [
82+
"prescriptions-for-patients",
83+
"getMyPrescriptions"
84+
]
85+
}
86+
},
87+
"response": []
88+
},
89+
{
90+
"name": "capability statement",
91+
"request": {
92+
"auth": {
93+
"type": "oauth2",
94+
"oauth2": [
95+
{
96+
"key": "tokenName",
97+
"value": "nhs identity token",
98+
"type": "string"
99+
},
100+
{
101+
"key": "refreshTokenUrl",
102+
"value": "https://internal-dev.api.service.nhs.uk/oauth2-mock/refresh",
103+
"type": "string"
104+
},
105+
{
106+
"key": "clientId",
107+
"value": "{{client_id}}",
108+
"type": "string"
109+
},
110+
{
111+
"key": "clientSecret",
112+
"value": "{{client_secret}}",
113+
"type": "string"
114+
},
115+
{
116+
"key": "scope",
117+
"value": "nhs-login",
118+
"type": "string"
119+
},
120+
{
121+
"key": "redirect_uri",
122+
"value": "https://example.org/",
123+
"type": "string"
124+
},
125+
{
126+
"key": "useBrowser",
127+
"value": false,
128+
"type": "boolean"
129+
},
130+
{
131+
"key": "state",
132+
"value": "{{$randomUUID}}",
133+
"type": "string"
134+
},
135+
{
136+
"key": "accessTokenUrl",
137+
"value": "https://internal-dev.api.service.nhs.uk/oauth2-mock/token",
138+
"type": "string"
139+
},
140+
{
141+
"key": "authUrl",
142+
"value": "https://internal-dev.api.service.nhs.uk/oauth2-mock/authorize",
143+
"type": "string"
144+
},
145+
{
146+
"key": "client_authentication",
147+
"value": "body",
148+
"type": "string"
149+
},
150+
{
151+
"key": "addTokenTo",
152+
"value": "header",
153+
"type": "string"
154+
}
155+
]
156+
},
157+
"method": "GET",
158+
"header": [],
159+
"url": {
160+
"raw": "https://{{host}}/prescriptions-for-patients/metadata",
161+
"protocol": "https",
162+
"host": [
163+
"{{host}}"
164+
],
165+
"path": [
166+
"prescriptions-for-patients",
167+
"metadata"
168+
]
169+
}
170+
},
171+
"response": []
172+
},
173+
{
174+
"name": "PULL REQUEST getMyPrescriptions",
175+
"request": {
176+
"auth": {
177+
"type": "oauth2",
178+
"oauth2": [
179+
{
180+
"key": "tokenName",
181+
"value": "nhs identity token",
182+
"type": "string"
183+
},
184+
{
185+
"key": "clientId",
186+
"value": "{{client_id}}",
187+
"type": "string"
188+
},
189+
{
190+
"key": "clientSecret",
191+
"value": "{{client_secret}}",
192+
"type": "string"
193+
},
194+
{
195+
"key": "scope",
196+
"value": "nhs-login",
197+
"type": "string"
198+
},
199+
{
200+
"key": "redirect_uri",
201+
"value": "https://example.org/",
202+
"type": "string"
203+
},
204+
{
205+
"key": "useBrowser",
206+
"value": false,
207+
"type": "boolean"
208+
},
209+
{
210+
"key": "state",
211+
"value": "{{$randomUUID}}",
212+
"type": "string"
213+
},
214+
{
215+
"key": "accessTokenUrl",
216+
"value": "https://internal-dev.api.service.nhs.uk/oauth2-mock/token",
217+
"type": "string"
218+
},
219+
{
220+
"key": "authUrl",
221+
"value": "https://internal-dev.api.service.nhs.uk/oauth2-mock/authorize",
222+
"type": "string"
223+
},
224+
{
225+
"key": "client_authentication",
226+
"value": "body",
227+
"type": "string"
228+
},
229+
{
230+
"key": "addTokenTo",
231+
"value": "header",
232+
"type": "string"
233+
}
234+
]
235+
},
236+
"method": "GET",
237+
"header": [],
238+
"url": {
239+
"raw": "https://{{host}}/prescriptions-for-patients-pr-{{pull_request_id}}/getMyPrescriptions",
240+
"protocol": "https",
241+
"host": [
242+
"{{host}}"
243+
],
244+
"path": [
245+
"prescriptions-for-patients-pr-{{pull_request_id}}",
246+
"getMyPrescriptions"
247+
]
248+
}
249+
},
250+
"response": []
251+
},
252+
{
253+
"name": "PULL REQUEST capability statement",
254+
"request": {
255+
"auth": {
256+
"type": "oauth2",
257+
"oauth2": [
258+
{
259+
"key": "tokenName",
260+
"value": "nhs identity token",
261+
"type": "string"
262+
},
263+
{
264+
"key": "clientId",
265+
"value": "{{client_id}}",
266+
"type": "string"
267+
},
268+
{
269+
"key": "clientSecret",
270+
"value": "{{client_secret}}",
271+
"type": "string"
272+
},
273+
{
274+
"key": "scope",
275+
"value": "nhs-login",
276+
"type": "string"
277+
},
278+
{
279+
"key": "redirect_uri",
280+
"value": "https://example.org/",
281+
"type": "string"
282+
},
283+
{
284+
"key": "useBrowser",
285+
"value": false,
286+
"type": "boolean"
287+
},
288+
{
289+
"key": "state",
290+
"value": "{{$randomUUID}}",
291+
"type": "string"
292+
},
293+
{
294+
"key": "accessTokenUrl",
295+
"value": "https://internal-dev.api.service.nhs.uk/oauth2-mock/token",
296+
"type": "string"
297+
},
298+
{
299+
"key": "authUrl",
300+
"value": "https://internal-dev.api.service.nhs.uk/oauth2-mock/authorize",
301+
"type": "string"
302+
},
303+
{
304+
"key": "client_authentication",
305+
"value": "body",
306+
"type": "string"
307+
},
308+
{
309+
"key": "addTokenTo",
310+
"value": "header",
311+
"type": "string"
312+
}
313+
]
314+
},
315+
"method": "GET",
316+
"header": [],
317+
"url": {
318+
"raw": "https://{{host}}/prescriptions-for-patients-pr-{{pull_request_id}}/metadata",
319+
"protocol": "https",
320+
"host": [
321+
"{{host}}"
322+
],
323+
"path": [
324+
"prescriptions-for-patients-pr-{{pull_request_id}}",
325+
"metadata"
326+
]
327+
}
328+
},
329+
"response": []
330+
}
331+
],
332+
"event": [
333+
{
334+
"listen": "prerequest",
335+
"script": {
336+
"type": "text/javascript",
337+
"exec": [
338+
""
339+
]
340+
}
341+
},
342+
{
343+
"listen": "test",
344+
"script": {
345+
"type": "text/javascript",
346+
"exec": [
347+
""
348+
]
349+
}
350+
}
351+
]
352+
}

0 commit comments

Comments
 (0)