My main question is how can I pass JSON as well as File to post request to REST API? What needs in Spring framework to work as client and wait for response by passing post with JSON and File?
Options:
- Do I need to use FileRepresentation with ClientResource? But how can I pass file as well as JSON?
- By using RestTemplate for passing both JSON as well as File? How it can be used for posting JSON as well as File?
Any other option is available?