Skip to content

Create new profile

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

Before testing the backend part of this application it's required to clone and install the frontend part of the application. The reason is that we are sending a POST request to http://localhost:9000

Creating a new profile on local machine sending POST request at http://localhost:9000 using Postman.

example

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

response

{
    "msg": "Usercreated",
    "token": "JhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWJqZWN0IjoiNWRmY2YxMTdlOTdiMmEwYmY4ZDQ2YTY0IiwiaWF0IjoxNTc2ODU3ODc5LCJleHAiOjE1NzcyODk4Nzl9.mxh_luEIBcft5jh6IrHJTQBTCku8GJVqI-hQ-sa"
}

Clone this wiki locally