-
Notifications
You must be signed in to change notification settings - Fork 7
API Schema
asifalix edited this page Feb 6, 2016
·
3 revisions
Prefer via OATH OR ANY other secure password exchange mechanism.
username // email id
password
{ "code": "200" "value":"Successfully logged in" }
username
password
date_of_birth
blood_group
address //optional
address2 //optional
locality //optional
city optional
pincode optional
donor_or_recipient //required - donor, recipient or both
###Output:
{
"code":"200"
"value":"Registration was successful"
}
OR
{
"code":"204"
"value":"Registration failed because the following fields missing: A,B, C"
}
/user/requestforblood
user_id
date_time
lat
long
address
address2
city
pincode
patientname
purpose
urgency (shown as how soon on ui) - show default options
{
"code":"200"
"value": "Request Registered"
"tracking_id":"1111"
}
user_id
request_id
date_time
{
"code":"200"
"user_id": "101"
"tracking_id":"1111"
}
user_id
request_id
tracking_id
{
"code":"200"
"lat": "101"
"long":"1111"
}