wiredsister / OpenTransplant

Organ Procurement Transplant System for "We, The People" developed using publicly available information about Organ Transplant & cutting edge medical research.
Apache License 2.0
42 stars 1 forks source link

POST api/v1/organ-intake-request #27

Closed yanlow closed 3 years ago

yanlow commented 3 years ago

@wiredsister the API now takes POST reqs, validates and stores them in Redis. You can check this out by going into the Phoenix container and running mix test to see it in action. I'll be finishing the validation based on your template over the next few days, will ping here when I'm done with that.

As a reference, we're using the organ_intake_requests list and the encoded strings come out of Redis looking like this:

"{\"name\":\"Tim Apple\",\"email\":\"tim@apple.com\",\"body_size\":\"Average_Male\",\"blood_type\":\"B_Pos\"}"