Registration For Admin
DevelopingPOST
http://localhost:3000/graphqlMutation
mutation Register($register: RegisterInput!) {
register(register: $register) {
age
email
id
sex
role
username
phone
}
}
Variables
{
"register": {
"username": "dev1",
"email": "dev1@po.com",
"role": "admin",
"password": "Pass@123",
"phone": "9657970141",
"sex": "male",
"age": 20
}
}
Request
None
Request samples
Responses
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
object {0}
ExampleResponse For Admin Registration
{
"data": {
"register": {
"age": 20,
"email": "dev1@po.com",
"id": "6",
"sex": "male",
"role": "admin",
"username": "dev1",
"phone": "9657970141"
}
}
}
Last modified: 2 months ago