Skip to content

Create Profile

Petar Scepanovic edited this page Dec 19, 2019 · 1 revision

For easy and testing and demonstration use Postman

endpoint for creating account http://localhost:9000/signup, POST request

Required fields are: name: String email: String password: String type: String(school or buyer)

example

{
	"name": "Petar",
	"email": "ship@mail.com",
	"password": "password",
	"type": "school"
	
}

response

{
    "msg": "Usercreated",
    "token": "JhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWJqZWN0IjoiNWRmYmQ0YTc0OTljYmUzMWRjYmMwOWRjIiwiaWF0IjoxNTc2Nzg1MDY0LCJleHAiOjE1NzcyMTcwNjR9.kNFZq2JJdk-MJbvKR_45gwKy3B_ZVmOrq8mjlv"
}

Clone this wiki locally