Skip to content

ravindersirohi/NodeSecureAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node / Express API

Restful API implementation with NodeJS, Express and JsonWebToken, to demonstrate how JWT token secure restful API endpoint.

GET Endpoint (public)

http://localhost:3002/profile, this endpoint return input json object to get JWT token via below post request.

POST - Login Endpoint - (public)

http://localhost:3002/profile/login : This endpoing accept body in below format and returns the JWT token to access secure endpoint. {"fullname":"Test User","email":"test@domain.com"}

POST - Endpoint (Secure)

http://localhost:3002/profile : This endpoint can only be accessed by valid JWT token generated by above(/profile/login) endpoint.

About

Restful secure API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published