Package com.unosquare.carmigo.controller
Class AuthenticationController
java.lang.Object
com.unosquare.carmigo.controller.AuthenticationController
Handles Authentication APIs.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<AuthenticationResponse>
createAuthenticationToken
(@Valid AuthenticationRequest authenticationRequest) Endpoint to generate JWT tokens.
-
Constructor Details
-
AuthenticationController
public AuthenticationController()
-
-
Method Details
-
createAuthenticationToken
@PostMapping(value="/login", produces="application/json") @ResponseStatus(CREATED) public org.springframework.http.ResponseEntity<AuthenticationResponse> createAuthenticationToken(@Valid @RequestBody @Valid AuthenticationRequest authenticationRequest) Endpoint to generate JWT tokens.- Parameters:
authenticationRequest
- Request body asAuthenticationRequest
.- Returns:
- Response body as
AuthenticationResponse
.
-