|
1 | 1 | { |
2 | 2 | "info": { |
3 | | - "_postman_id": "110252c4-5fa1-46ca-a08d-b5ce96e28fde", |
4 | | - "name": "Validate Relationship Service Sandbox 06/06/25", |
| 3 | + "_postman_id": "4442b3f9-8d89-4aae-a5a9-8a5eda755ead", |
| 4 | + "name": "Validate Relationship Service Sandbox 09/06/25", |
5 | 5 | "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)", |
6 | 6 | "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", |
7 | | - "_exporter_id": "18067099", |
8 | | - "_collection_link": "https://www.postman.com/lunar-crescent-672573/workspace/validated-relationship-service-06-06-25/collection/18067099-110252c4-5fa1-46ca-a08d-b5ce96e28fde?action=share&source=collection_link&creator=18067099" |
| 7 | + "_exporter_id": "34042403", |
| 8 | + "_collection_link": "https://www.postman.com/jackplowman2/validated-relationship-service-sandbox-09-06-25/collection/yzbxyur/validate-relationship-service-sandbox-09-06-25?action=share&source=collection_link&creator=34042403" |
9 | 9 | }, |
10 | 10 | "item": [ |
11 | 11 | { |
|
6096 | 6096 | " {", |
6097 | 6097 | " \"system\": \"https://fhir.nhs.uk/R4/CodeSystem/ValidatedRelationships-ErrorOrWarningCode\",", |
6098 | 6098 | " \"version\": \"1\",", |
6099 | | - " \"code\": \"INVALID_VALUE\",", |
| 6099 | + " \"code\": \"INVALID_PARAMETER\",", |
6100 | 6100 | " \"display\": \"Required parameter(s) are invalid.\"", |
6101 | 6101 | " }", |
6102 | 6102 | " ]", |
|
6114 | 6114 | "});", |
6115 | 6115 | "", |
6116 | 6116 | "pm.test(\"Should have correct error response\", () => {", |
6117 | | - " pm.expect(responseJson.issue[0].details.coding[0].code).to.eql(\"INVALID_VALUE\");", |
| 6117 | + " pm.expect(responseJson.issue[0].details.coding[0].code).to.eql(\"INVALID_PARAMETER\");", |
6118 | 6118 | "});", |
6119 | 6119 | "", |
6120 | 6120 | "pm.test(\"Should have correct response body\", () => {", |
|
8007 | 8007 | }, |
8008 | 8008 | "response": [] |
8009 | 8009 | }, |
8010 | | - { |
8011 | | - "name": "Missing consent ID", |
8012 | | - "event": [ |
8013 | | - { |
8014 | | - "listen": "test", |
8015 | | - "script": { |
8016 | | - "exec": [ |
8017 | | - "const expectedResponseBody = {", |
8018 | | - " \"issue\": [", |
8019 | | - " {", |
8020 | | - " \"code\": \"invalid\",", |
8021 | | - " \"diagnostics\": \"Invalid request with error - ID must be specified in the request path.\",", |
8022 | | - " \"details\": {", |
8023 | | - " \"coding\": [", |
8024 | | - " {", |
8025 | | - " \"code\": \"MISSING_ID_VALUE\",", |
8026 | | - " \"display\": \"Required parameter(s) are missing.\",", |
8027 | | - " \"system\": \"https://fhir.nhs.uk/R4/CodeSystem/ValidatedRelationships-ErrorOrWarningCode\",", |
8028 | | - " \"version\": \"1\"", |
8029 | | - " }", |
8030 | | - " ]", |
8031 | | - " },", |
8032 | | - " \"severity\": \"error\"", |
8033 | | - " }", |
8034 | | - " ],", |
8035 | | - " \"resourceType\": \"OperationOutcome\"", |
8036 | | - "}", |
8037 | | - "", |
8038 | | - "const responseJson = pm.response.json();", |
8039 | | - "", |
8040 | | - "pm.test(\"Status code is 400\", function () {", |
8041 | | - " pm.response.to.have.status(400);", |
8042 | | - "});", |
8043 | | - "", |
8044 | | - "pm.test(\"Should have correct response body\", () => {", |
8045 | | - " pm.expect(responseJson).to.eql(expectedResponseBody);", |
8046 | | - "});" |
8047 | | - ], |
8048 | | - "type": "text/javascript", |
8049 | | - "packages": {} |
8050 | | - } |
8051 | | - } |
8052 | | - ], |
8053 | | - "request": { |
8054 | | - "method": "GET", |
8055 | | - "header": [], |
8056 | | - "url": { |
8057 | | - "raw": "{{api_base_url}}/Consent/ ", |
8058 | | - "host": [ |
8059 | | - "{{api_base_url}}" |
8060 | | - ], |
8061 | | - "path": [ |
8062 | | - "Consent", |
8063 | | - " " |
8064 | | - ] |
8065 | | - } |
8066 | | - }, |
8067 | | - "response": [] |
8068 | | - }, |
8069 | 8010 | { |
8070 | 8011 | "name": "Invalid include parameter", |
8071 | 8012 | "event": [ |
|
8083 | 8024 | " {", |
8084 | 8025 | " \"system\": \"https://fhir.nhs.uk/R4/CodeSystem/ValidatedRelationships-ErrorOrWarningCode\",", |
8085 | 8026 | " \"version\": \"1\",", |
8086 | | - " \"code\": \"INVALID_VALUE\",", |
| 8027 | + " \"code\": \"INVALID_PARAMETER\",", |
8087 | 8028 | " \"display\": \"Required parameter(s) are invalid.\"", |
8088 | 8029 | " }", |
8089 | 8030 | " ]", |
|
8148 | 8089 | " {", |
8149 | 8090 | " \"system\": \"https://fhir.nhs.uk/R4/CodeSystem/ValidatedRelationships-ErrorOrWarningCode\",", |
8150 | 8091 | " \"version\": \"1\",", |
8151 | | - " \"code\": \"INVALID_VALUE\",", |
| 8092 | + " \"code\": \"INVALID_PARAMETER\",", |
8152 | 8093 | " \"display\": \"Required parameter(s) are invalid.\"", |
8153 | 8094 | " }", |
8154 | 8095 | " ]", |
|
0 commit comments