Skip to content

Commit 8ffeefe

Browse files
committed
NPA-5534: Updated param in OAS
1 parent da60ccd commit 8ffeefe

File tree

2 files changed

+29
-9
lines changed

2 files changed

+29
-9
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
MethodNotAllowedError:
2+
summary: Method is not allowed
3+
description: 405 error response bundle as HTTP method is not allowed
4+
value:
5+
resourceType: "OperationOutcome"
6+
issue:
7+
- code: "not-supported"
8+
details:
9+
coding:
10+
- system: "https://fhir.nhs.uk/R4/CodeSystem/ValidatedRelationships-ErrorOrWarningCode"
11+
version: "1"
12+
code: "METHOD_NOT_ALLOWED"
13+
display: "The method is not allowed."
14+
diagnostics: "The method is not allowed for the requested resource."
15+
severity: "error"

specification/validated-relationships-service-api.yaml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -325,21 +325,15 @@ paths:
325325
| -------------------------------- | ------------------------------------------------ | ------------------------------------------------------------- |
326326
| Valid access request ID | ID value: `156e1560-e532-4e2a-85ad-5aeff03dc43e` | HTTP Status 200 with QuestionnaireResponse |
327327
| Invalid access request ID | ID value: `INVALID` | HTTP Status 400 with INVALID_IDENTIFIER_VALUE message |
328-
| Missing access request ID | No ID path parameter | HTTP Status 400 with BAD_REQUEST message |
328+
| Missing access request ID | No ID path parameter | HTTP Status 405 with METHOD_NOT_ALLOWED message |
329329
| Non-existent access request ID | ID value: `60d09b82-f4bb-41f9-b41e-767999b4ac9b` | HTTP Status 404 with QUESTIONNAIRE_RESPONSE_NOT_FOUND message |
330330
331331
operationId: get-questionnaire-response
332332
parameters:
333333
- $ref: "#/components/parameters/BearerAuthorization"
334334
- $ref: "#/components/parameters/RequestID"
335335
- $ref: "#/components/parameters/CorrelationID"
336-
- name: id
337-
in: path
338-
description: The unique access request ID of the QuestionnaireResponse to retrieve
339-
required: true
340-
schema:
341-
type: string
342-
example: "156e1560-e532-4e2a-85ad-5aeff03dc43e"
336+
- $ref: "#/components/parameters/AccessRequestID"
343337
responses:
344338
"200":
345339
description: QuestionnaireResponse successfully retrieved.
@@ -376,7 +370,7 @@ paths:
376370
invalidAccessRequestID:
377371
$ref: "./examples/responses/GET_QuestionnaireResponse/errors/invalid_access_request_id.yaml#/InvalidAccessRequestID"
378372
missingAccessRequestID:
379-
$ref: "./examples/responses/GET_QuestionnaireResponse/errors/missing_access_request_id.yaml#/MissingAccessRequestID"
373+
$ref: "./examples/responses/errors/method_not_allowed.yaml#/MethodNotAllowedError"
380374
questionnaireResponseNotFound:
381375
$ref: "./examples/responses/GET_QuestionnaireResponse/errors/questionnaire_response_not_found.yaml#/QuestionnaireResponseNotFound"
382376
"5XX":
@@ -2790,3 +2784,14 @@ components:
27902784
format: uuid
27912785
pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
27922786
example: 74eed847-ca25-4e76-8cf2-f2c2d7842a7a
2787+
2788+
AccessRequestID:
2789+
in: path
2790+
name: id
2791+
required: true
2792+
description: The unique access request ID of the QuestionnaireResponse to retrieve
2793+
schema:
2794+
type: string
2795+
format: uuid
2796+
pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
2797+
example: "156e1560-e532-4e2a-85ad-5aeff03dc43e"

0 commit comments

Comments
 (0)