We are building APIs for our app which uses Laravel and Vue.
I have three types of Users:
-
Admin
-
Brand
-
Influencer End-User
We are using a single table to store all the users and have role-based differentiation. While designing the API endpoints should we design three resources for the three types of users and another resource called Session
or User
for the logged-in user?
How do you design a restful API when you have multiple user roles?
Aucun commentaire:
Enregistrer un commentaire