Skip to content

A simple Secure REST API using NodeJS, Express, JWT and MondoDB(mongoose)

Notifications You must be signed in to change notification settings

cmuth001/Secure-REST-API-Express-Node-MongoDB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Secure-REST-API-NodeJS

Signup

Admin Signup Developer Signup
Admin Signup Developer Signup

Login

Admin Login

Admin Login
Admin Login

Admin have access to get all the users(admin/developers) in the database.

All Users
All Users

Admin role have access to delete the users in the table

Delete User
Access to delete user

Developer Login

Developer Login
Developer Login

Developer can get all the users with role developer

Developer Users
Developer Users

Developer does not have access to delete user

Access Denied
Access Denied

I hope this tutorial helped you in creating a simple Secure REST API using NodeJs and Mongodb. To Know more about how to create a simple REST API click here.