Authenticate User

POST /api/mimock/v1/user/authenticate

Authenticates the user and returns the auth token.

Accepts AuthenticateUserRequest and returns the JWT auth token.

public class AuthenticateUserRequest {
@NotBlank(message = "Username cannot be empty")
@Schema(example = "bruce_wayne", description = "Unique user name for the user")
@Size(min = 6, message = "User name must be at least 6 characters long")
@Size(max = 128, message = "User name cannot be more than 128 characters")
private String userName;
@NotBlank(message = "Password cannot be empty")
@Schema(example = "batman@123", description = "Password entered by the user")
private String password;