I have back-end API to allow user POST a json_body
and with a file:
@RequestMapping(value = "/sendemail",
method = RequestMethod.POST,
produces = MediaType.APPLICATION_JSON_UTF8_VALUE,
consumes = {MediaType.MULTIPART_FORM_DATA_VALUE}
)
public @ResponseBody ResponseEntity<String> sendEmailToClients(
@RequestBody String jsonData,
@RequestParam(value = "file", required = false) final MultipartFile file) {
...
}
Question: On Postman Tool, Is there any way to make a POST
for sending out json_body
and file upload?