I have below code which consumes input using @RequestBody. But I'm trying to write a @PostMapping request which consumes a text file. But I'm not aware on how to achieve my desired requirement. Can someone please help me on achieving the desired result?
@PostMapping(value = "/getInput")
public ResponseEntity<ApiResponse> getInput(@RequestBody InputData inputData) {
// rest of the code..
}