Subversion Repositories SmartDukaan

Rev

Rev 21285 | Rev 21298 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 21285 Rev 21287
Line 82... Line 82...
82
			return new ResponseEntity<>(profitMandiResponse,HttpStatus.INTERNAL_SERVER_ERROR);
82
			return new ResponseEntity<>(profitMandiResponse,HttpStatus.INTERNAL_SERVER_ERROR);
83
		}
83
		}
84
	}
84
	}
85
 
85
 
86
	@RequestMapping(value = ProfitMandiConstants.URL_VERIFY_OTP, method=RequestMethod.GET,produces = MediaType.APPLICATION_JSON_VALUE)
86
	@RequestMapping(value = ProfitMandiConstants.URL_VERIFY_OTP, method=RequestMethod.GET,produces = MediaType.APPLICATION_JSON_VALUE)
-
 
87
	@ApiImplicitParams({
-
 
88
		@ApiImplicitParam(name = "Auth-Token", value = "Auth-Token", 
-
 
89
				required = true, dataType = "string", paramType = "header")
-
 
90
	})
87
	@ApiOperation(value = "Generate OTP")
91
	@ApiOperation(value = "Generate OTP")
88
	public ResponseEntity<?> validateOtp(@RequestParam("email") String email, @RequestParam("reference_id") long reference_id, @RequestParam("otp_number") String otp_number){
92
	public ResponseEntity<?> validateOtp(@RequestParam("email") String email, @RequestParam("reference_id") long reference_id, @RequestParam("otp_number") String otp_number){
89
		logger.info("Email : "+email+" Refference_id : "+reference_id);
93
		logger.info("Email : "+email+" Refference_id : "+reference_id);
90
		//TODO validate email & phone from utility method
94
		//TODO validate email & phone from utility method
91
		OTPResponse otpResponse;
95
		OTPResponse otpResponse;