@RestController @CrossOrigin public class OtpGeneratorController extends Object
| Constructor and Description |
|---|
OtpGeneratorController() |
| Modifier and Type | Method and Description |
|---|---|
io.mosip.kernel.core.http.ResponseWrapper<OtpGeneratorResponseDto> |
generateOtp(io.mosip.kernel.core.http.RequestWrapper<OtpGeneratorRequestDto> otpDto)
This method handles the OTP generation.
|
@PreAuthorize(value="hasAnyRole(\'INDIVIDUAL\',\'REGISTRATION_ADMIN\',\'REGISTRATION_SUPERVISOR\',\'REGISTRATION_OFFICER\',\'ID_AUTHENTICATION\',\'AUTH\')") @ResponseFilter @PostMapping(value="/otp/generate") public io.mosip.kernel.core.http.ResponseWrapper<OtpGeneratorResponseDto> generateOtp(@Validated(value=GenerationDTOValidationLevels.ValidationLevel.class) @RequestBody io.mosip.kernel.core.http.RequestWrapper<OtpGeneratorRequestDto> otpDto)
otpDto - The request DTO for OTP generation.Copyright © 2020. All rights reserved.