CRUD on User
It's a new feature to allow CRUD on User. User is someone using the application.
Model
| Users |
| Id (PK) |
| name (String) Not Null |
| email (String) Not Null Unique |
| password(String) Not null |
| role[admin,visitor]=visitor |
- Users 1 -->1,n Entities
- Users 1 -->1,n Providers
- 1 User has 1 or Many Entity
- 1 User has Many Providers
Services
We'll create a Controller class that provides the following functionality:
CRUD on User
It's a new feature to allow CRUD on User. User is someone using the application.
Model
Services
We'll create a Controller class that provides the following functionality:
get: retrieve user
Parameters :
Return: If parameter is null, return all users otherwise those requested
Error:
post: create a new user
Parameters :
Return: All properties but id of the user stored in DB.
Error :
put: modify a specific user
Parameters: Not null
Return: All properties but id of the user stored in DB.
Error :
delete: delete a specific user
Parameters: Not null
Return: All properties but id of the userstored in DB.
Error :