From f239db9b6c320b2936ed3b0aa8df0ac48e454648 Mon Sep 17 00:00:00 2001 From: Derek Houck <12766168+derekhouck@users.noreply.github.com> Date: Thu, 14 Nov 2024 11:57:42 -0600 Subject: [PATCH 1/2] Add note about native setup --- modules/simple_forms_api/README.rdoc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/simple_forms_api/README.rdoc b/modules/simple_forms_api/README.rdoc index 05f3feb6148..8e59847c792 100644 --- a/modules/simple_forms_api/README.rdoc +++ b/modules/simple_forms_api/README.rdoc @@ -4,8 +4,10 @@ With this in place, you can submit a form payload from the vets-website and have this module map that payload to the associated PDF and submit it to the Benefits Intake API in Lighthouse. +Note: The following command can currently only be run locally after following the [Native setup](https://github.com/department-of-veterans-affairs/vets-api/blob/master/docs/setup/native.md) instructions. + To generate files: -rails simple_forms_api:generate\['path to PDF file'\] + rails simple_forms_api:generate\['path to PDF file'\] Submission endpoint: /simple_forms_api/v1/simple_forms From 18f2724ec6726a28e7e91048774a1b9191ddd89b Mon Sep 17 00:00:00 2001 From: Derek Houck <12766168+derekhouck@users.noreply.github.com> Date: Thu, 14 Nov 2024 13:17:51 -0600 Subject: [PATCH 2/2] Add default path to rails command --- modules/simple_forms_api/README.rdoc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/simple_forms_api/README.rdoc b/modules/simple_forms_api/README.rdoc index 8e59847c792..422404491fa 100644 --- a/modules/simple_forms_api/README.rdoc +++ b/modules/simple_forms_api/README.rdoc @@ -1,13 +1,13 @@ = SimpleFormsApi -This module allows you to generate form_mappings based on a PDF file. -With this in place, you can submit a form payload from the vets-website -and have this module map that payload to the associated PDF and submit it +This module allows you to generate form_mappings based on a PDF file. +With this in place, you can submit a form payload from the vets-website +and have this module map that payload to the associated PDF and submit it to the Benefits Intake API in Lighthouse. Note: The following command can currently only be run locally after following the [Native setup](https://github.com/department-of-veterans-affairs/vets-api/blob/master/docs/setup/native.md) instructions. To generate files: - rails simple_forms_api:generate\['path to PDF file'\] + rails simple_forms_api:generate['modules/simple_forms_api/templates/YOUR_PDF_FILE.pdf'] Submission endpoint: /simple_forms_api/v1/simple_forms