Register For Patients
Developing
{
"register": {
"username": "olauber2",
"email": "ooo121@po.com",
"role": "patient",
"password": "Pass@123",
"health_issues": ["Asthama"],
"phone": "9657970148",
"sex": "male",
"age": 30,
"family_member": [],
"relation": [],
"blood_group": "A+",
"weight": 57
}
}
Request Code Samples
curl --location --request POST 'http://localhost:3000/graphql' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImRldjEiLCJ1c2VySWQiOjQsInVzZXJfYXNzaWdubWVudCI6ImFkbWluIiwiaWF0IjoxNzI3MzYxMDk0LCJleHAiOjE3MjczNjQ2OTR9.Zckr61S0kHq7ZogL6aI7FTeF45rSMqZM74YQ1_MAqoA'
Responses
application/json {
"data": {
"register": {
"age": 30,
"email": "ooo121@po.com",
"id": "2",
"sex": "male",
"role": "patient",
"username": "olauber2",
"phone": "9657970148"
}
}
}
Modified at 2024-09-23 04:29:21