Skip to content

Commit 8ca7dfc

Browse files
committed
NPA-4688: Add GET /QuestionnaireResponse endpoint
This commit adds a new GET endpoint for retrieving QuestionnaireResponse by referenceCode, including: - New API endpoint definition with appropriate parameters - Success and error response examples - Reuse of existing QuestionnaireResponse schema Add event catalog changes and OpenAPI tools config PR review notes, update examples and 4XX codes, add examples for GET QR spark build merge NPA-4575: Update sandbox with consent patch (#163) * Updated sandbox with patch endpoint * Updated postman collection * Added patch consent to schema workflow checks add questionnaire response schema to validate func update success schema rename to questionnaire response not found hypens to underscores NPA-4688: Add GET /QuestionnaireResponse endpoint This commit adds a new GET endpoint for retrieving QuestionnaireResponse by referenceCode, including: - New API endpoint definition with appropriate parameters - Success and error response examples - Reuse of existing QuestionnaireResponse schema Add event catalog changes and OpenAPI tools config PR review notes, update examples and 4XX codes, add examples for GET QR spark build merge NPA-4575: Update sandbox with consent patch (#163) * Updated sandbox with patch endpoint * Updated postman collection * Added patch consent to schema workflow checks add questionnaire response schema to validate func update success schema rename to questionnaire response not found hypens to underscores
1 parent 86e0289 commit 8ca7dfc

File tree

2 files changed

+26
-3
lines changed

2 files changed

+26
-3
lines changed

.github/workflows/openapi-validate.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,29 @@ jobs:
135135
run: |
136136
make schema-questionnaire
137137
138+
GET_Questionnaire:
139+
name: GET questionnaire test
140+
runs-on: ubuntu-latest
141+
steps:
142+
- name: Checkout repository
143+
uses: actions/checkout@v4
144+
145+
- name: Set up Python
146+
uses: actions/setup-python@v5
147+
with:
148+
python-version: 3.9
149+
150+
- name: Install Poetry
151+
shell: bash
152+
run: |
153+
pipx install poetry==1.8.5
154+
- name: Install Script Packages with Poetry
155+
shell: bash
156+
run: |
157+
poetry install --all-extras
158+
- name: Run Python script for all files
159+
run: |
160+
make schema-get-questionnaire
138161
Errors:
139162
name: Error schema test
140163
runs-on: ubuntu-latest

specification/validated-relationships-service-api.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -311,11 +311,11 @@ paths:
311311
$ref: "#/components/schemas/OperationOutcome"
312312
examples:
313313
invalidReferenceCode:
314-
$ref: "./examples/responses/GET_QuestionnaireResponse/errors/invalid-reference-code.yaml#/InvalidReferenceCode"
314+
$ref: "./examples/responses/GET_QuestionnaireResponse/errors/invalid_reference_code.yaml#/InvalidReferenceCode"
315315
missingReferenceCode:
316-
$ref: "./examples/responses/GET_QuestionnaireResponse/errors/missing-reference-code.yaml#/MissingReferenceCode"
316+
$ref: "./examples/responses/GET_QuestionnaireResponse/errors/missing_reference_code.yaml#/MissingReferenceCode"
317317
referenceCodeNotFound:
318-
$ref: "./examples/responses/GET_QuestionnaireResponse/errors/questionnaire-response-not-found.yaml#/QuestionnaireResponseNotFound"
318+
$ref: "./examples/responses/GET_QuestionnaireResponse/errors/questionnaire_response_not_found.yaml#/QuestionnaireResponseNotFound"
319319
"5XX":
320320
description: Server error
321321
content:

0 commit comments

Comments
 (0)