Class AuthenticationController

java.lang.Object
com.unosquare.carmigo.controller.AuthenticationController

@RestController @RequestMapping("/v1") public class AuthenticationController extends Object
Handles Authentication APIs.
  • 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 as AuthenticationRequest.
      Returns:
      Response body as AuthenticationResponse.