Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 1.11 KB

Readme.md

File metadata and controls

25 lines (21 loc) · 1.11 KB

Java Online Marathon

To-Do List Project. REST API

The Task:

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

  1. Use GET, POST, PUT, DELETE methods to manage the Collections.
  2. Add security rules as from the previous stage (use BasicAuth to begin with)
  3. Customize exception handling, use ResponseStatusException
  4. Use Postman to demonstrate the functionality
  5. 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