This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@RestController | |
public class BalanceInquiryController { | |
@PostMapping(value = "/com/balanceInquiry") | |
public ResponseEntity<?> getBalanceInquiry(@Valid @RequestBody BalanceInquiryModel balanceInquiry, Errors errors) { | |
if (errors.hasErrors()) { | |
return new ResponseEntity<String>("Validation", HttpStatus.BAD_REQUEST); | |
} | |
//any stuff |