vets-who-code-app icon indicating copy to clipboard operation
vets-who-code-app copied to clipboard

Add veteran status verification

Open jeromehardaway opened this issue 7 months ago • 1 comments

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.

jeromehardaway avatar Jul 28 '24 02:07 jeromehardaway