Software Development, Programming, Self Improvement, Java, Spring Boot.
ResponseEntity<ApiResponseDto<?>> UserDashboard() { return ResponseEntity .status(HttpStatus.OK) .body(ApiResponseDto.builder() .isSuccess(true) .message("User dashboard!") .build()); } // Only users with 'ROLE_ADMIN' role can access this end point' @GetMapping("/admin")