department-of-veterans-affairs / va.gov-team

Public resources for building on and in support of VA.gov. Visit complete Knowledge Hub:
https://depo-platform-documentation.scrollhelp.site/index.html
284 stars 206 forks source link

Create a working curl for benefit_summary_dependent letter #27367

Closed bosawt closed 3 years ago

bosawt commented 3 years ago

We have a cURL that is used in vets-api today that generates a benefit_summary letter, but we don't send the proper fields over for a benefit_summary_dependent letter. If we can get a working cURL for this feature, we can start development for this features in vets-api

bosawt commented 3 years ago

This cURL works:

curl --insecure -X POST \ -H 'va_eauth_csid: DSLogon' \ -H 'va_eauth_authenticationmethod: DSLogon' \ -H 'va_eauth_assurancelevel: 3' \ -H 'va_eauth_issueinstant: 2021-07-01T17:10:48Z' \ -H 'va_eauth_dodedipnid: 1025579697' \ -H 'va_eauth_authorization: {"authorizationResponse":{"id":796060339,"idType":"SSN","edi":1025579697,"firstName":"JAMIE","middleName":"J","lastName":"WOOD","gender":"FEMALE","birthDate":"1945-05-24T00:00:00-07:00","deceased":false,"status":"DEPENDENT","associationReason":"SPOUSE","benefit":22,"headOfFamily":{"id":796196567,"idType":"SSN","edi":1025579662,"firstName":"FREDERICK","middleName":"J","lastName":"WOOD","gender":"MALE","birthDate":"1948-03-19T00:00:00-07:00","deceased":false,"status":"SPONSOR","personnel":{"category":"RETIRED_MILITARY","entitlementCondition":"00","organization":22,"rank":"MSGT","serviceBranchClassification":"F"},"benefit":22}}}' \ -H "Content-type: application/json" \ -H "accept: application/json" \ -d '{"militaryService":true,"monthlyAward":true,"serviceConnectedEvaluation":true,"chapter35Eligibility":true,"survivorsAward":true,"deathResultOfDisability":true}' \ 'https://internal-dsva-vagov-staging-fwdproxy-1821450725.us-gov-west-1.elb.amazonaws.com:4431/wss-lettergenerator-services-web/rest/letters/v1/benefit_summary_dependent/generate'