TrustTheVote-Project / ABC-backend

https://abc-backend.vercel.app
Other
4 stars 6 forks source link

Change lookupVoterByAddress API #29

Closed awoflaherty closed 2 years ago

awoflaherty commented 3 years ago

change the lookupAddress API to accept and match using firstName, lastName, yearOfBirth, zip5 and streetNumber. For columns firstName, lastName, and streetNumber, characters are case insensitive.

awoflaherty commented 3 years ago

Real life example: https://ballottrace.org/home

cwisdo commented 3 years ago

Confirming that we are altering this specification as follows:

awoflaherty commented 3 years ago

Yes, removing state and city fields from the API call to the back end. Add streetNumber to this API call requirements.

These fields will remain in the return response to the app.

Thank you and Happy Thanksgiving

awoflaherty commented 2 years ago

Confirming that V1.4 deployment still has City and State as required fields. Revised wireframes only have street number and zip code, so these should be removed.

cwisdo commented 2 years ago

I'm not seeing these as required fields.

curl --header "Content-Type: application/json" -request POST --data '{"firstName": "Rowan","lastName": "Quinn","yearOfBirth": "2000","streetNumber": "3","ZIP5": "77707"}' https://9zdmvlvyu7.execute-api.us-east-1.amazonaws.com/development-v1-4-0/lookupVoterByAddress

awoflaherty commented 2 years ago

Works as requested.