I am interested to know if the following scenario is feasible at all: In one request, consume a JSON/XML with a List of custom objects containing some string attributes and a list of files. Something like
public class MyCustomObject{
String attr1;
String attr2;
List<File> files; //FileItem maybe?
//setters getters
}
Rest:
@Path("/test")
@Consumes(MediaType.MULTIPART_FORM_DATA)
@POST
public Response test(List<MyCustomObject> myObjects){
//Do something with objects
}
Thank you for your time :)