Immunization Backend - JSON RESTful Web API w/ Express.js, MongoDB
2013 Bill & Melinda Gates Immunization App
See the iPad app that uses this API!
- firstName
- middleName
- lastName
- fatherFullName
- motherFullName
- motherMaidenName
- birthYear
- birthMonth
- birthDay
- gender
- contactPhone
- contactEmail
- contactStreetAddress
- contactCity
- contactState
- contactZip
- contactCountry
- picture
- bloodType
- alergies
- diseaseHistory
- notes
- Request:
- username
- password
- Response:
- status: "success" or "failure"
- firstName: < firstName >
- Response:
- status: "success" or "failure"
Retrieves all patients
- Response:
- < array of all patients >
Finds a particular patient
- Response:
- if patient found: < patient >
- if patient not found: status: "failure"
Updates a patient's info
- Request: < fields to change >
- Response:
- status: "success" or "failure"
- Request:
- < fields to match on >
- Response list:
- < array of matched patients >
- Reload the database in case something bad happened. Note, no authentication is required for this: the database can be reset with a web browser.
- Response:
- status: "success" or "failure"