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

Commits on Jul 28, 2024

  1. Add veteran status verification

    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).
    jeromehardaway committed Jul 28, 2024
    Configuration menu
    Copy the full SHA
    ee5af5d View commit details
    Browse the repository at this point in the history