-
Notifications
You must be signed in to change notification settings - Fork 0
Create Account
Petar Scepanovic edited this page Jan 6, 2020
·
10 revisions
For creating new account/user we will send POST request to this endpoint: http://localhost:9000/signup
POSTMAN used for the demonstration
Important note: In Postman add to headers Content-Type with the value application/json
Example of POST request for creating new account added to body of request object:
{
"email": "pdamda@gmail.com",
"password": "password",
"type": "buyer",
"firstname": "Petar",
"lastname": "Scepanovic"
}
Response:
{
"msg": "Usercreated",
"token": "yJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWJqZWN0IjoiNWUxMzM2NjBkMWFlYWQzOTY0OTgyZmNmIiwiaWF0IjoxNTc4MzE3NDA4LCJleHAiOjE1Nzg3NDk0MDh9.y_cXZZxN7psRxmfsnnwUnkNzzau_Pg8_ve7GPyXxml"
}
Student-Art-Collection
Getting Started