Class UserController

java.lang.Object
vaultWeb.controllers.UserController

@RestController @RequestMapping("/api/auth") public class UserController extends Object
  • Constructor Details

    • UserController

      public UserController()
  • Method Details

    • register

      @PostMapping("/register") public org.springframework.http.ResponseEntity<String> register(@Valid @RequestBody @Valid UserDto user)
    • login

      @PostMapping("/login") public org.springframework.http.ResponseEntity<?> login(@Valid @RequestBody @Valid UserDto user, jakarta.servlet.http.HttpServletResponse response)
    • refresh

      @PostMapping("/refresh") public org.springframework.http.ResponseEntity<?> refresh(@CookieValue(name="refresh_token",required=false) String refreshToken, jakarta.servlet.http.HttpServletResponse response)
    • logout

      @PostMapping("/logout") public org.springframework.http.ResponseEntity<Void> logout(@CookieValue(name="refresh_token",required=false) String refreshToken, jakarta.servlet.http.HttpServletResponse response)
    • checkUsernameExists

      @GetMapping("/check-username") public org.springframework.http.ResponseEntity<Map<String,Boolean>> checkUsernameExists(@RequestParam String username)
    • getAllUsers

      @GetMapping("/users") public org.springframework.http.ResponseEntity<List<UserResponseDto>> getAllUsers()
    • changePassword

      @PostMapping("/change-password") public org.springframework.http.ResponseEntity<Void> changePassword(@Valid @RequestBody @Valid ChangePasswordRequest request)