Create REST-controllers for managing the following resources:
- Collection of all the users:
/api/users
- Collection of todos for the user:
/api/users/{u_id}/todos
- Collection of collaborators for the todo:
/api/users/{u_id}/todos/{t_id}/collaborators
- Collection of tasks for the todo:
/api/users/{u_id}/todos/{t_id}/tasks
- Use GET, POST, PUT, DELETE methods to manage the Collections.
- Add security rules as from the previous stage (use BasicAuth to begin with)
- Customize exception handling, use
ResponseStatusException
- Use Postman to demonstrate the functionality
- Optionally try to implement JWT authentication (the JJWT library included in the pom.xml)
There are three predefined users in the DB with roles ADMIN and USER.
Login | Password | Role |
---|---|---|
[email protected] | 1111 | ADMIN |
[email protected] | 2222 | USER |
[email protected] | 3333 | USER |