Features

  • Authentication (JWT)
  • Authorization
  • Bidirectional Relationship
  • DTO
  • Validation
  • Exception Handler
  • Swagger openAPI("/swagger-ui.html")
  • /me route

Refactoring Steps

  • hiding stacktrace on error responses
  • invalid post request shows details of the system
  • in controllers, no need to specify ResponseEntity.ok(..

Project Steps

  • Task Controller
  • Task Entity
  • Task CRUD
  • Task data initialization test
  • User Controller
  • User Entity
  • User CRUD
  • Task-User relationship
  • Authentication init (JWT Auth)
  • Authentication is completed
  • Authorization init (permits all routes for now)
  • Register endpoint
  • Auth has been simplyfied
  • Services has been simplyfied
  • Controllers has been simplyfied
  • Global ControllerAdvice for exceptions
  • Index controller
  • Secret keys config