I have a case where I have to save json data and upload a file in one request.
this is how I am doing in spring
public void profile (@RequestBody @Validated @Valid ProfileDTO profileDTO,
@RequestPart("file") @Valid MultipartFile file){
/// saving to db
}
Now how can I test this using curl and postman?