Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit a1dc97a

Browse files
feat: Insomnia / Postman collections for manual testing (#31)
1 parent 4677ac4 commit a1dc97a

File tree

5 files changed

+463
-2
lines changed

5 files changed

+463
-2
lines changed

compose.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ services:
7171
condition: service_healthy
7272
db:
7373
condition: service_healthy
74+
volumes:
75+
- mesh-config-data:/azure-functions-host/Secrets/
7476
networks:
7577
- backend
7678

@@ -142,3 +144,6 @@ volumes:
142144
db-data:
143145
name: db-data
144146
driver: local
147+
mesh-config-data:
148+
name: mesh-config-data
149+
driver: local
Lines changed: 356 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,356 @@
1+
type: collection.insomnia.rest/5.0
2+
name: NHS
3+
meta:
4+
id: wrk_738dc23a04ea4e47a7d01738b72201ed
5+
created: 1722434681694
6+
modified: 1722434681694
7+
collection:
8+
- name: Select
9+
meta:
10+
id: fld_b916cc57ad9e4964828845e31c1745b0
11+
created: 1743004900191
12+
modified: 1747733900210
13+
sortKey: -1743004900191
14+
- name: DataService
15+
meta:
16+
id: fld_c3382c257b124dacbffd26e7db504bfb
17+
created: 1747733934120
18+
modified: 1748516742640
19+
sortKey: -1747910487990
20+
children:
21+
- url: "{{ _.mesh_sandbox_url }}/messageexchange/X26ABC1/outbox"
22+
name: Mesh Request
23+
meta:
24+
id: req_a0ecb19c822d40839ae42678de382da1
25+
created: 1747992419775
26+
modified: 1748514832787
27+
isPrivate: false
28+
sortKey: -1747992419925
29+
method: POST
30+
body:
31+
mimeType: application/octet-stream
32+
fileName:
33+
headers:
34+
- name: Content-Type
35+
value: text/csv
36+
id: pair_2bb7b8cb72ca413c896900437eb49ffa
37+
- name: User-Agent
38+
value: HTTPie
39+
id: pair_b4b6ec9c767a4a9ea5f37e82beb02b1a
40+
- id: pair_20ab5ad1d55f4af487c182bfe3d6869f
41+
name: Authorization
42+
value: "{{meshAuthorisation}}"
43+
disabled: false
44+
- id: pair_0d5403dbd6794b00b45d73288e1a7f56
45+
name: Host
46+
value: localhost:8700
47+
disabled: false
48+
- id: pair_df1a308d1a0941a4881081e9fd14615b
49+
name: Mex-Filename
50+
value: test_episodes_20241009_latest.csv
51+
disabled: false
52+
- id: pair_5d4497fe301246a19b2bbaad0dde8fd4
53+
name: Mex-From
54+
value: "{{meshSandboxMailbox}}"
55+
disabled: false
56+
- id: pair_bf20e7dd55b641afa99669d4fad881b9
57+
name: Mex-To
58+
value: "{{meshSandboxMailbox}}"
59+
disabled: false
60+
- id: pair_fd17af674fa848a8b36aa9e51affda57
61+
name: Mex-Workflowid
62+
value: API-DOCS-TEST
63+
disabled: false
64+
settings:
65+
renderRequestBody: true
66+
encodeUrl: true
67+
followRedirects: global
68+
cookies:
69+
send: true
70+
store: true
71+
rebuildPath: true
72+
- url: "{{ _.mesh_sandbox_url }}/messageexchange/X26ABC1/inbox"
73+
name: Get MESH Inbox
74+
meta:
75+
id: req_1b38d6fc1a2e4df3887ba87610c9b4c0
76+
created: 1748010148910
77+
modified: 1748514818520
78+
isPrivate: false
79+
sortKey: -1747992419875
80+
method: GET
81+
headers:
82+
- name: User-Agent
83+
value: HTTPie
84+
id: pair_b4b6ec9c767a4a9ea5f37e82beb02b1a
85+
- id: pair_20ab5ad1d55f4af487c182bfe3d6869f
86+
name: Authorization
87+
value: "{{ meshAuthorisation }}"
88+
disabled: false
89+
- id: pair_0d5403dbd6794b00b45d73288e1a7f56
90+
name: Host
91+
value: localhost:8700
92+
disabled: false
93+
settings:
94+
renderRequestBody: true
95+
encodeUrl: true
96+
followRedirects: global
97+
cookies:
98+
send: true
99+
store: true
100+
rebuildPath: true
101+
- url: "{{ _.mesh_ingest_url }}/admin/functions/MeshHandshakeFunction"
102+
name: Mesh Handshake (Timer)
103+
meta:
104+
id: req_f7ab0c0e26d04e2f9d9e08b4f81bcd43
105+
created: 1748434699775
106+
modified: 1748514921710
107+
isPrivate: false
108+
sortKey: -1747921258958
109+
method: POST
110+
body:
111+
mimeType: application/json
112+
text: |-
113+
{
114+
// Timer trigger - performs MESH handshake health check
115+
"input": ""
116+
}
117+
parameters:
118+
- id: pair_892346d6688e43f6b92ee35ad2410b34
119+
disabled: false
120+
headers:
121+
- name: Content-Type
122+
value: application/json
123+
id: pair_b173458285874ea8b46b5332dcc60570
124+
- name: User-Agent
125+
value: insomnia/11.1.0
126+
id: pair_53388d8cda1945bab47ff7b616bd31a0
127+
settings:
128+
renderRequestBody: true
129+
encodeUrl: true
130+
followRedirects: global
131+
cookies:
132+
send: true
133+
store: true
134+
rebuildPath: true
135+
- url: "{{ _.mesh_ingest_url }}/admin/functions/FileDiscoveryFunction"
136+
name: File Discovery (Timer)
137+
meta:
138+
id: req_a40d10f1d500472383bc34ebf0a0e1e0
139+
created: 1748435198587
140+
modified: 1748514913043
141+
isPrivate: false
142+
sortKey: -1747992419825
143+
method: POST
144+
body:
145+
mimeType: application/json
146+
text: |-
147+
{
148+
// Timer trigger - scans MESH inbox for new messages
149+
"input": ""
150+
}
151+
headers:
152+
- name: Content-Type
153+
value: application/json
154+
id: pair_f49d3291afc2446fac8870418f1fa707
155+
- name: User-Agent
156+
value: insomnia/11.1.0
157+
id: pair_53388d8cda1945bab47ff7b616bd31a0
158+
- id: pair_7d6896186cdf4fcab495def4642a007c
159+
name: Authorization
160+
value: "{{ _.meshAuthorisation }}"
161+
disabled: false
162+
settings:
163+
renderRequestBody: true
164+
encodeUrl: true
165+
followRedirects: global
166+
cookies:
167+
send: true
168+
store: true
169+
rebuildPath: true
170+
- url: "{{ _.mesh_ingest_url }}/admin/functions/FileRetryFunction"
171+
name: File Retry (Timer)
172+
meta:
173+
id: req_7d9acd39d8f2480d9ee3c37e3dc34723
174+
created: 1748435262139
175+
modified: 1748514918195
176+
isPrivate: false
177+
sortKey: -1747959380833.625
178+
method: POST
179+
body:
180+
mimeType: application/json
181+
text: >-
182+
{
183+
// Timer trigger - retries stale extraction/transformation operations
184+
"input": ""
185+
}
186+
headers:
187+
- name: Content-Type
188+
value: application/json
189+
id: pair_aaf682c7b0334c9c83cf1a26eed66143
190+
- name: User-Agent
191+
value: insomnia/11.1.0
192+
id: pair_53388d8cda1945bab47ff7b616bd31a0
193+
settings:
194+
renderRequestBody: true
195+
encodeUrl: true
196+
followRedirects: global
197+
cookies:
198+
send: true
199+
store: true
200+
rebuildPath: true
201+
- url: "{{ _.mesh_ingest_url }}/admin/functions/FileExtractFunction"
202+
name: File Extract (Queue)
203+
meta:
204+
id: req_73243b5059ea472ba6e7fa6e49549952
205+
created: 1748435288094
206+
modified: 1748514915919
207+
isPrivate: false
208+
sortKey: -1747992419812.5
209+
method: POST
210+
body:
211+
mimeType: application/json
212+
text: |-
213+
// Replace with actual FileId from MESH inbox
214+
// Get FileIds by calling: GET /messageexchange/X26ABC1/inbox
215+
{
216+
"FileId": "159896E597B24A9F8E82F0674C10AB98"
217+
}
218+
headers:
219+
- name: Content-Type
220+
value: application/json
221+
id: pair_7d11f30a765b42ee888503a49c55b7c5
222+
- name: User-Agent
223+
value: insomnia/11.1.0
224+
id: pair_53388d8cda1945bab47ff7b616bd31a0
225+
settings:
226+
renderRequestBody: true
227+
encodeUrl: true
228+
followRedirects: global
229+
cookies:
230+
send: true
231+
store: true
232+
rebuildPath: true
233+
- url: "{{ _.mesh_ingest_url }}/admin/functions/FileTransformFunction"
234+
name: File Transform (Queue)
235+
meta:
236+
id: req_adc34d0696674592adf276cd67cf5195
237+
created: 1748435351948
238+
modified: 1748514919801
239+
isPrivate: false
240+
sortKey: -1747992419793.75
241+
method: POST
242+
body:
243+
mimeType: application/json
244+
text: |-
245+
// Replace with actual FileId from MESH inbox
246+
// Get FileIds by calling: GET /messageexchange/X26ABC1/inbox
247+
{
248+
"FileId": "159896E597B24A9F8E82F0674C10AB98"
249+
}
250+
headers:
251+
- name: Content-Type
252+
value: application/json
253+
id: pair_eb5af6bfc0f54c2f9a3c24087b36e3df
254+
- name: User-Agent
255+
value: insomnia/11.1.0
256+
id: pair_53388d8cda1945bab47ff7b616bd31a0
257+
settings:
258+
renderRequestBody: true
259+
encodeUrl: true
260+
followRedirects: global
261+
cookies:
262+
send: true
263+
store: true
264+
rebuildPath: true
265+
- url: "{{ _.mesh_sandbox_url
266+
}}/messageexchange/X26ABC1/inbox/159896E597B24A9F8E82F0674C10AB98"
267+
name: Get MESH Message by Id
268+
meta:
269+
id: req_5a926a7f6d4a49e5a5153f6b3d29b15d
270+
created: 1748435488346
271+
modified: 1748514809403
272+
isPrivate: false
273+
sortKey: -1747992419850
274+
method: GET
275+
parameters:
276+
- id: pair_156dd6646ebb4b3da0423ddf4b11ba98
277+
name: id
278+
value: 0B500E9749834F5AB3C89875346F53B8
279+
disabled: false
280+
headers:
281+
- name: User-Agent
282+
value: HTTPie
283+
id: pair_b4b6ec9c767a4a9ea5f37e82beb02b1a
284+
- id: pair_20ab5ad1d55f4af487c182bfe3d6869f
285+
name: Authorization
286+
value: "{{ _.meshAuthorisation }}"
287+
disabled: false
288+
- id: pair_0d5403dbd6794b00b45d73288e1a7f56
289+
name: Host
290+
value: localhost:8700
291+
disabled: false
292+
settings:
293+
renderRequestBody: true
294+
encodeUrl: true
295+
followRedirects: global
296+
cookies:
297+
send: true
298+
store: true
299+
rebuildPath: true
300+
- url: "{{ _.base_url }}/api/bsselect/episodes/ingress"
301+
name: IngressEpisode
302+
meta:
303+
id: req_a92c6aa106bc4c91bedf34878eda2968
304+
created: 1748516009918
305+
modified: 1748516657482
306+
isPrivate: false
307+
sortKey: -1747910792423
308+
method: POST
309+
body:
310+
mimeType: application/json
311+
text: |-
312+
{
313+
"episode_id": "12345",
314+
"nhs_number": "1234567890",
315+
"date_of_birth": "1990-01-15",
316+
"first_given_name": "John",
317+
"family_name": "Smith"
318+
}
319+
headers:
320+
- name: Content-Type
321+
value: application/json
322+
- name: User-Agent
323+
value: insomnia/11.1.0
324+
id: pair_8372df4efdfe451aad23e68982c237a3
325+
settings:
326+
renderRequestBody: true
327+
encodeUrl: true
328+
followRedirects: global
329+
cookies:
330+
send: true
331+
store: true
332+
rebuildPath: true
333+
- name: ParticipantManager
334+
meta:
335+
id: fld_6e725754fd3e4fc1ad51eefd60e88ec3
336+
created: 1747910487890
337+
modified: 1747910487890
338+
sortKey: -1747910487890
339+
cookieJar:
340+
name: Default Jar
341+
meta:
342+
id: jar_f714b7668b974121d51068531b8ab7c1d3a6759c
343+
created: 1722434681700
344+
modified: 1737026586440
345+
environments:
346+
name: MAYS
347+
meta:
348+
id: env_f714b7668b974121d51068531b8ab7c1d3a6759c
349+
created: 1722434681697
350+
modified: 1748515915606
351+
isPrivate: false
352+
data:
353+
mesh_ingest_url: http://localhost:7072
354+
mesh_sandbox_url: http://localhost:8700
355+
x-functions-key: your-local-master-key-here
356+
base_url: http://localhost:7071

0 commit comments

Comments
 (0)