I use jersey for REST.
For POST it possible to upload 2 files and send an annotated JAXB object?
@POST @Path("create") @Consumes({MediaType.MULTIPART_FORM_DATA, MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON}) @Override public Response addData(FormDataMultiPart multiform, System type)
Any suggestions please?
source share