baseUrl
: https://auth-express-ts.up.railway.app/api
-
POST
/user/register
Sample request :
Headers :
{ 'content-type' : application/json }
Body :
{ "email": "[email protected]", "password":"password", "username":"John doe" }
-
POST
/user/login
Sample request :
Headers :
{ 'content-type' : application/json }
Body :
{ "email": "[email protected]", "password":"password" }
-
POST
/user/reset-password
Sample request :
Headers :
{ 'content-type' : application/json }
Body :
{ "email": "[email protected]" }
-
POST
/user/update-password
Sample request :
Headers :
{ "content-type" : "application/json", "Authorization" : "Bearer <token here>" }
Body :
{ "password": "password" }
-
GET
/private/content
Sample request :
Headers :
{ "content-type" : "application/json", "Authorization" : "Bearer <token here>" }