You are on page 1of 2

Open Postman and create a new request.

Set the request method to POST.


Enter the URL: http://localhost:3000/api/customer/signup.
Click on the Body tab below the request URL.
Select raw and then choose JSON from the dropdown menu.
Provide the required parameters in JSON format. For example:
json
Copy code
{
"full_name": "John Doe",
"email": "johndoe@example.com",
"phone_number": "1234567890",
"password": "password123"
}
Click Send to make the request.
For Customer Login API (/api/customer/login):

Follow similar steps as above but change the URL to


http://localhost:3000/api/customer/login.
Provide the email and password in the request body JSON. For example:
json
Copy code
{
"email": "johndoe@example.com",
"password": "password123"
}
Click Send to make the request.

// for partner

Set the request method to POST.


Enter the URL: http://localhost:3000/api/partner/signup.
Click on the Body tab below the request URL.
Select raw and then choose JSON from the dropdown menu.
Provide the required parameters in JSON format. For example:
json
Copy code
{
"full_name": "Jane Smith",
"email": "janesmith@example.com",
"phone_number": "9876543210",
"password": "password456",
"is_owner": true
}
Click Send to make the request.
For Partner Login API (/api/partner/login):

Follow similar steps as above but change the URL to


http://localhost:3000/api/partner/login.
Provide the email and password in the request body JSON. For example:
json
Copy code
{
"email": "janesmith@example.com",
"password": "password456"
}
Click Send to make the request.
g-ZhNW@pAExE

User “naaywvzs_test” was added to the database “naaywvzs_salon”.

blackbox ai

You might also like