From f5abb29fc94330cd08b70473df79f2dd50d3e322 Mon Sep 17 00:00:00 2001 From: Courtney Myers Date: Thu, 23 Jan 2025 17:35:51 -0500 Subject: [PATCH] Update OpenAPI docs to include new Formio PDF submission routes --- docs/csb-openapi.json | 63 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/docs/csb-openapi.json b/docs/csb-openapi.json index be0eff94..d0b924eb 100644 --- a/docs/csb-openapi.json +++ b/docs/csb-openapi.json @@ -373,6 +373,27 @@ } } }, + "/api/formio/2022/pdf/{formType}/{mongoId}": { + "get": { + "summary": "Download a PDF of a 2022 form submission.", + "parameters": [ + { + "$ref": "#/components/parameters/formType" + }, + { + "$ref": "#/components/parameters/mongoId" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + } + } + } + }, "/api/formio/2022/frf-submissions": { "get": { "summary": "Get user's 2022 FRF submissions from Formio.", @@ -744,6 +765,27 @@ } } }, + "/api/formio/2023/pdf/{formType}/{mongoId}": { + "get": { + "summary": "Download a PDF of a 2023 form submission.", + "parameters": [ + { + "$ref": "#/components/parameters/formType" + }, + { + "$ref": "#/components/parameters/mongoId" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + } + } + } + }, "/api/formio/2023/frf-submissions": { "get": { "summary": "Get user's 2023 FRF submissions from Formio.", @@ -1108,6 +1150,27 @@ } } }, + "/api/formio/2024/pdf/{formType}/{mongoId}": { + "get": { + "summary": "Download a PDF of a 2024 form submission.", + "parameters": [ + { + "$ref": "#/components/parameters/formType" + }, + { + "$ref": "#/components/parameters/mongoId" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + } + } + } + }, "/api/formio/2024/frf-submissions": { "get": { "summary": "Get user's 2024 FRF submissions from Formio.",