Skip to content

Varadarajan-M/auth-express-ts-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auth Service API

baseUrl : https://auth-express-ts.up.railway.app/api

Available endpoints

  • 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>"
       }