@PostMapping()
public ResponseEntity<ApiResponse> createContact(
@RequestBody ContactRequest contactRequest) throws IOException {
}
How to reject the API request, if extra params present in the request, by default spring boot ignoring extra parameters.