| Line 7... |
Line 7... |
| 7 |
import org.springframework.beans.factory.annotation.Autowired;
|
7 |
import org.springframework.beans.factory.annotation.Autowired;
|
| 8 |
import org.springframework.http.HttpStatus;
|
8 |
import org.springframework.http.HttpStatus;
|
| 9 |
import org.springframework.http.MediaType;
|
9 |
import org.springframework.http.MediaType;
|
| 10 |
import org.springframework.http.ResponseEntity;
|
10 |
import org.springframework.http.ResponseEntity;
|
| 11 |
import org.springframework.stereotype.Controller;
|
11 |
import org.springframework.stereotype.Controller;
|
| - |
|
12 |
import org.springframework.web.bind.annotation.RequestBody;
|
| 12 |
import org.springframework.web.bind.annotation.RequestMapping;
|
13 |
import org.springframework.web.bind.annotation.RequestMapping;
|
| 13 |
import org.springframework.web.bind.annotation.RequestMethod;
|
14 |
import org.springframework.web.bind.annotation.RequestMethod;
|
| 14 |
import org.springframework.web.bind.annotation.RequestParam;
|
15 |
import org.springframework.web.bind.annotation.RequestParam;
|
| 15 |
|
16 |
|
| 16 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
17 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
| Line 109... |
Line 110... |
| 109 |
final ProfitMandiResponse<?> profitMandiResponse=new ProfitMandiResponse<>(LocalDateTime.now(), ProfitMandiConstants.URL_VERIFY_OTP , HttpStatus.INTERNAL_SERVER_ERROR.toString(), HttpStatus.INTERNAL_SERVER_ERROR, ResponseStatus.FAILURE, otpResponse);
|
110 |
final ProfitMandiResponse<?> profitMandiResponse=new ProfitMandiResponse<>(LocalDateTime.now(), ProfitMandiConstants.URL_VERIFY_OTP , HttpStatus.INTERNAL_SERVER_ERROR.toString(), HttpStatus.INTERNAL_SERVER_ERROR, ResponseStatus.FAILURE, otpResponse);
|
| 110 |
return new ResponseEntity<>(profitMandiResponse,HttpStatus.INTERNAL_SERVER_ERROR);
|
111 |
return new ResponseEntity<>(profitMandiResponse,HttpStatus.INTERNAL_SERVER_ERROR);
|
| 111 |
}
|
112 |
}
|
| 112 |
}
|
113 |
}
|
| 113 |
@ApiOperation(value = "Parse OTP")
|
114 |
@ApiOperation(value = "Parse OTP")
|
| - |
|
115 |
@ApiImplicitParams({
|
| - |
|
116 |
@ApiImplicitParam(name = "Auth-Token", value = "Auth-Token",
|
| - |
|
117 |
required = true, dataType = "string", paramType = "header")
|
| - |
|
118 |
})
|
| 114 |
@RequestMapping(value = ProfitMandiConstants.URL_PARSE_OTP, method=RequestMethod.GET,produces = MediaType.APPLICATION_JSON_VALUE)
|
119 |
@RequestMapping(value = ProfitMandiConstants.URL_PARSE_OTP, method=RequestMethod.POST,produces = MediaType.APPLICATION_JSON_VALUE)
|
| 115 |
public ResponseEntity<?> parseOTP (@RequestParam("message") String message) {
|
120 |
public ResponseEntity<?> parseOTP (@RequestBody String message) {
|
| 116 |
return responseSender.ok("3334343");
|
121 |
return responseSender.ok("3334343");
|
| 117 |
}
|
122 |
}
|
| 118 |
|
123 |
|
| 119 |
|
124 |
|
| 120 |
}
|
125 |
}
|