Skip to content

harshitchaudhary/node_rest_jwt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Instructions Simple REST JWT based node app

Endpoint 1: (Creates an user)

url: localhost:8000/user method: POST body: username, password, email

Endpoint 2: (Login user and generates a JWT token)

url: localhost:8000/login method: POST body: username, password

Endpoint 3: (List all of the users)

url: localhost:8000/user method: GET headers: x-access-token (Token received from login)

Endpoint 4: (List an user)

url: localhost:8000/user/:id method: GET

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published