Package vaultWeb.controllers
Class UserController
java.lang.Object
vaultWeb.controllers.UserController
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Void> changePassword(@Valid ChangePasswordRequest request) checkUsernameExists(String username) org.springframework.http.ResponseEntity<List<UserResponseDto>> org.springframework.http.ResponseEntity<?> org.springframework.http.ResponseEntity<Void> org.springframework.http.ResponseEntity<?> org.springframework.http.ResponseEntity<String>
-
Constructor Details
-
UserController
public UserController()
-
-
Method Details
-
register
-
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
-
checkUsernameExists
-
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)
-