Project: talendesb
Issue TESB-5953: Support Multipart Payloads for REST components
Supporting the multipart payloads is important for most interesting/real-world REST applications. Please see https://jira.talendforge.org/browse/TESB-9347 for the proposed first step that may need to be taken. I think the following may need to be considered: 1. Updating the way the code generator produces the code: * Generate @Consumes("multipart/form-data") * Add MultipartBody instead of DOM4J Document as a parameter representing the request body * Check MultipartBody, and store a map of multipart parts (name of the part is the key, InputStream representing the part - value) in a map and make it available to the components following tRESTRequest. IMHO this is not a complex thing to do 2. Introduce a dedicated tRESTMultipart component - perhaps that will need to be done at the next stage - this component may offer a more sophisticated configuration for dealing with different multipart types.
Story points: 3