Skip to content

Repository files navigation

User Registration REST API

All the endpoints are protected by Basic Authentication. Some endpoints like the PUT and DELETE need a valid JWT token which you will get when you register a user. The token is valid for 1 hr and is passed via the header. All info is persisted in MONGODB ATLAS

API details

METHODURL
GET/users
DescFetches all the registered users
Basic AuthYes
JWTNo
GET/users/:userid
DescFetches only the user passed to the API
Basic AuthYes
JWTNo
POST/users
DescCreates a new registered user
Basic AuthYes
JWTNo
POST/users/login
DescLogs in a registered user and returns a JWT token
Basic AuthYes
JWTNo
PUT/users/:userid
DescUpdate a registered user
Basic AuthYes
JWTYes
DELETE/users/:userid
DescDeletes a registered user
Basic AuthYes
JWTYes

About

Express App integrated with Atlas MongoDB and JWT

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages