How can I send file(s) + json data in one request?
What should I put in rest-service.xml and how to handle it in ServiceBean?
The rest-service.xml mechanism doesn’t support files as arguments:
REST API allows execution not only of methods that have arguments of simple datatypes, but also of methods with the following arguments:
- entities collections
- serializable POJOs
So for your task you should write a normal Spring MVC controller, e.g. like adviced here:
To make this controller protected by the same authentication as other REST API methods, make configuration adjustments as described here: CUBA REST API