Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add veteran status verification #614

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jeromehardaway
Copy link
Contributor

@jeromehardaway jeromehardaway commented Jul 28, 2024

Add API route and frontend form for Veteran Confirmation API integration.

  • API Route: Create veteran-status.ts in pages/api directory to handle POST requests, extract firstName, lastName, birthDate, and ssn from 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.tsx in pages directory to display a form with fields for firstName, lastName, birthDate, and ssn, send the form data to the veteran-status API route via a POST request when submitted, and display the API response or an error message to the user.
  • Environment Variable: Add .env.local file to store the VA_API_KEY environment variable securely.

For more details, open the Copilot Workspace session.

Add API route and frontend form for Veteran Confirmation API integration.

* **API Route**: Create `veteran-status.ts` in `pages/api` directory to handle POST requests, extract `firstName`, `lastName`, `birthDate`, and `ssn` from 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.tsx` in `pages` directory to display a form with fields for `firstName`, `lastName`, `birthDate`, and `ssn`, send the form data to the `veteran-status` API route via a POST request when submitted, and display the API response or an error message to the user.
* **Environment Variable**: Add `.env.local` file to store the `VA_API_KEY` environment variable securely.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/Vets-Who-Code/vets-who-code-app?shareId=XXXX-XXXX-XXXX-XXXX).
Copy link

vercel bot commented Jul 28, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant