Register For Doctor
POST
http://localhost:3000/graphqlMutation
mutation Mutation($register: RegisterInput!) {
register(register: $register) {
email
id
role
username
sex
age
phone
}
}
Variables
{
"register": {
"username": "ravi",
"speciality": [
"neurology"
],
"sex": "male",
"age": 30,
"phone": "9657970158",
"services": [
"consulting",
"headache pain reflect"
],
"role": "doctor",
"password": "Rav!3476576",
"email": "ravi@po.com",
"facility_type": "clinic",
"facility_name": "ravi clinic",
"facility_location": "AP",
"default_fee": 250.00,
"average_consulting_time": "00:30:00",
"experience": 2
}
}
Request
None
Request samples
Responses
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
object {0}
ExampleSuccess registration
{
"data": {
"register": {
"email": "ravi@po.com",
"id": "1",
"role": "doctor",
"username": "ravi",
"sex": "male",
"age": 30,
"phone": "9657970158"
}
}
}
Last modified: 2 months ago