Skip to content

Commit 8320499

Browse files
NPA-5629: Postman update
1 parent e8f2e7f commit 8320499

File tree

2 files changed

+28
-21
lines changed

2 files changed

+28
-21
lines changed

postman/Validated Relationship Service Sandbox.postman_collection.json

Lines changed: 27 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"info": {
3-
"_postman_id": "66c6bd03-3fda-4ff7-9be9-bace275b60cf",
4-
"name": "Validated Relationship Service Sandbox 08/09/25",
3+
"_postman_id": "76babb13-02c0-42b3-84ec-d64ebe45e7b8",
4+
"name": "Validated Relationship Service Sandbox 17/09/25",
55
"description": "This Postman collection includes example scenarios for each of the Validated Relationship Service (VRS) API endpoints, covering both valid and invalid request scenarios.\n\nThe collection is pointed towards the VRS sandbox environment, which will return a specific example response based on the request sent. All data shown in the requests or responses is test data.\n\nOur sandbox environment only covers the scenarios listed in the Postman collection and is open access. It does not allow you to test authorisation or any scenarios beyond the ones documented.\n\nFull specification is available at [https://digital.nhs.uk/developer/api-catalogue/validated-relationship-service](https://digital.nhs.uk/developer/api-catalogue/validated-relationship-service)",
66
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
77
"_exporter_id": "45653607",
8-
"_collection_link": "https://www.postman.com/lukeelliott-8674106/workspace/validated-relationship-service-sandbox-08-11-2025/collection/45653607-66c6bd03-3fda-4ff7-9be9-bace275b60cf?action=share&source=collection_link&creator=45653607"
8+
"_collection_link": "https://www.postman.com/lukeelliott-8674106/validated-relationship-service-sandbox-17-09-2025/collection/k6eagdd/validated-relationship-service-sandbox-17-09-25?action=share&source=collection_link&creator=45653607"
99
},
1010
"item": [
1111
{
@@ -1760,7 +1760,7 @@
17601760
" ]",
17611761
" },",
17621762
" \"diagnostics\": \"Not a valid NHS Number provided for the 'identifier' parameter\",",
1763-
" \"expression\": \"RelatedPerson.identifier\",",
1763+
" \"expression\": [\"RelatedPerson.identifier\"],",
17641764
" \"severity\": \"error\"",
17651765
" }",
17661766
" ],",
@@ -1919,6 +1919,7 @@
19191919
" }",
19201920
" ]",
19211921
" },",
1922+
" \"diagnostics\": \"Resource that has been marked as invalid was requested - invalid resources cannot be retrieved\",",
19221923
" \"severity\": \"error\"",
19231924
" }",
19241925
" ],",
@@ -1939,7 +1940,8 @@
19391940
" pm.expect(responseJson).to.eql(expectedResponseBody);",
19401941
"});"
19411942
],
1942-
"type": "text/javascript"
1943+
"type": "text/javascript",
1944+
"packages": {}
19431945
}
19441946
}
19451947
],
@@ -1997,6 +1999,7 @@
19971999
" }",
19982000
" ]",
19992001
" },",
2002+
" \"diagnostics\": \"Resource that has been marked as invalid was requested - invalid resources cannot be retrieved\",",
20002003
" \"severity\": \"error\"",
20012004
" }",
20022005
" ],",
@@ -2017,7 +2020,8 @@
20172020
" pm.expect(responseJson).to.eql(expectedResponseBody);",
20182021
"});"
20192022
],
2020-
"type": "text/javascript"
2023+
"type": "text/javascript",
2024+
"packages": {}
20212025
}
20222026
}
20232027
],
@@ -7296,9 +7300,7 @@
72967300
" \"resourceType\": \"OperationOutcome\",",
72977301
" \"issue\": [",
72987302
" {",
7299-
" \"severity\": \"error\",",
73007303
" \"code\": \"invalid\",",
7301-
" \"diagnostics\": \"Invalid request with error - status parameter is invalid.\",",
73027304
" \"details\": {",
73037305
" \"coding\": [",
73047306
" {",
@@ -7308,7 +7310,9 @@
73087310
" \"display\": \"Required parameter(s) are invalid.\"",
73097311
" }",
73107312
" ]",
7311-
" }",
7313+
" },",
7314+
" \"diagnostics\": \"Invalid request with error - status parameter is invalid.\",",
7315+
" \"severity\": \"error\"",
73127316
" }",
73137317
" ]",
73147318
"}",
@@ -7375,10 +7379,10 @@
73757379
" }",
73767380
" ]",
73777381
" },",
7382+
" \"diagnostics\": \"Invalid request with error - _include parameter is invalid.\",",
73787383
" \"severity\": \"error\"",
73797384
" }",
7380-
" ],",
7381-
" \"diagnostics\": \"Invalid request with error - _include parameter is invalid.\"",
7385+
" ]",
73827386
"}",
73837387
"",
73847388
"const responseJson = pm.response.json();",
@@ -7435,8 +7439,7 @@
74357439
"const expectedResponseBody = {",
74367440
" \"resourceType\": \"OperationOutcome\",",
74377441
" \"issue\": [",
7438-
" {",
7439-
" \"severity\": \"error\",",
7442+
" { ",
74407443
" \"code\": \"processing\",",
74417444
" \"details\": {",
74427445
" \"coding\": [",
@@ -7447,7 +7450,10 @@
74477450
" \"display\": \"Resource that has been marked as invalid was requested - invalid resources cannot be retrieved\"",
74487451
" }",
74497452
" ]",
7450-
" }",
7453+
" },",
7454+
" \"diagnostics\": \"Resource that has been marked as invalid was requested - invalid resources cannot be retrieved\",",
7455+
" \"severity\": \"error\",",
7456+
" ",
74517457
" }",
74527458
" ]",
74537459
"}",
@@ -7466,7 +7472,8 @@
74667472
" pm.expect(responseJson).to.eql(expectedResponseBody);",
74677473
"});"
74687474
],
7469-
"type": "text/javascript"
7475+
"type": "text/javascript",
7476+
"packages": {}
74707477
}
74717478
}
74727479
],
@@ -7502,7 +7509,6 @@
75027509
" \"issue\": [",
75037510
" {",
75047511
" \"code\": \"invalid\",",
7505-
" \"diagnostics\": \"Invalid request with error - performer:identifier or patient:identifier parameter is invalid.\",",
75067512
" \"details\": {",
75077513
" \"coding\": [",
75087514
" {",
@@ -7513,6 +7519,7 @@
75137519
" }",
75147520
" ]",
75157521
" },",
7522+
" \"diagnostics\": \"Invalid request with error - performer:identifier or patient:identifier parameter is invalid.\",",
75167523
" \"severity\": \"error\"",
75177524
" }",
75187525
" ],",
@@ -7570,7 +7577,6 @@
75707577
" \"issue\": [",
75717578
" {",
75727579
" \"code\": \"invalid\",",
7573-
" \"diagnostics\": \"Invalid request with error - performer:identifier or patient:identifier system parameter is invalid.\",",
75747580
" \"details\": {",
75757581
" \"coding\": [",
75767582
" {",
@@ -7581,6 +7587,7 @@
75817587
" }",
75827588
" ]",
75837589
" },",
7590+
" \"diagnostics\": \"Invalid request with error - performer:identifier or patient:identifier system parameter is invalid.\",",
75847591
" \"severity\": \"error\"",
75857592
" }",
75867593
" ],",
@@ -7638,7 +7645,6 @@
76387645
" \"issue\": [",
76397646
" {",
76407647
" \"code\": \"invalid\",",
7641-
" \"diagnostics\": \"Invalid request with error - performer:identifier or patient:identifier parameter not found.\",",
76427648
" \"details\": {",
76437649
" \"coding\": [",
76447650
" {",
@@ -7649,6 +7655,7 @@
76497655
" }",
76507656
" ]",
76517657
" },",
7658+
" \"diagnostics\": \"Invalid request with error - performer:identifier or patient:identifier parameter not found.\",",
76527659
" \"severity\": \"error\"",
76537660
" }",
76547661
" ],",
@@ -7710,6 +7717,7 @@
77107717
" }",
77117718
" ]",
77127719
" },",
7720+
" \"diagnostics\": \"GP Practice could not be found\",",
77137721
" \"severity\": \"error\"",
77147722
" }",
77157723
" ],",
@@ -10264,8 +10272,7 @@
1026410272
"variable": [
1026510273
{
1026610274
"key": "api_base_url",
10267-
"value": "https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4",
10268-
"type": "string"
10275+
"value": "https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4"
1026910276
}
1027010277
]
1027110278
}

specification/validated-relationships-service-api.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ info:
141141
* only covers a limited set of scenarios
142142
* is open access, so does not allow you to test authorisation
143143
144-
[<img src="https://run.pstmn.io/button.svg" alt="Run In Postman" style="width: 128px; height: 32px;">](https://god.gw.postman.com/run-collection/45653607-66c6bd03-3fda-4ff7-9be9-bace275b60cf?action=collection%2Ffork&source=rip_markdown&collection-url=entityId%3D45653607-66c6bd03-3fda-4ff7-9be9-bace275b60cf%26entityType%3Dcollection%26workspaceId%3Dbd95b9f9-f9b0-4f1f-958a-2f6822c182c1)
144+
[<img src="https://run.pstmn.io/button.svg" alt="Run In Postman" style="width: 128px; height: 32px;">](https://god.gw.postman.com/run-collection/45653607-76babb13-02c0-42b3-84ec-d64ebe45e7b8?action=collection%2Ffork&source=rip_markdown&collection-url=entityId%3D45653607-76babb13-02c0-42b3-84ec-d64ebe45e7b8%26entityType%3Dcollection%26workspaceId%3D613eff0e-e7c3-462b-b8da-185b83ec7856)
145145
146146
### Integration testing
147147

0 commit comments

Comments
 (0)