vets-who-code-app
vets-who-code-app copied to clipboard
Add veteran status verification
Add API route and frontend form for Veteran Confirmation API integration.
-
API Route: Create
veteran-status.tsinpages/apidirectory to handle POST requests, extractfirstName,lastName,birthDate, andssnfrom the request body, send a POST request to the Veteran Confirmation API, include the API key from environment variables in the request headers, and return the API response as JSON or an error message. -
Frontend Form: Create
VeteranStatus.tsxinpagesdirectory to display a form with fields forfirstName,lastName,birthDate, andssn, send the form data to theveteran-statusAPI route via a POST request when submitted, and display the API response or an error message to the user. -
Environment Variable: Add
.env.localfile to store theVA_API_KEYenvironment variable securely.
For more details, open the Copilot Workspace session.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| vets-who-code-app | ❌ Failed (Inspect) | Jul 28, 2024 2:41am |