This API is built to demonstrate how to secure the endpoints of your API based on the role of client.
Permissions | |||||
---|---|---|---|---|---|
Role | Add a product | View all products | View product | Update product | Delete product |
Intern | ✔️ | ✔️ | - | - | - |
Supervisor | ✔️ | ✔️ | ✔️ | - | - |
Admin | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
Username | Role | Password |
---|---|---|
timmy | intern | password |
john | supervisor | password |
sarah | admin | password |