title: REST API Single Request - Multiple responses
body: <p>I am writing a REST API in JAX-RS 2.0, JDK 8 for the below requirement</p>
  
  <p><strong>POST API /server/fileUpload/</strong> (Multipart Form data) where I need to send a Big .AI (Adobe Illustrator) File in this.</p>
  
  <p>The Server, takes the file and <strong>return Status 202 (Accepted)</strong>, Acknowledging that file transfer happened Successfully. (From endpoint to Server)</p>
  
  <p>Now at the Server, I am using Java + Imagemagik to convert .AI File (20-25 MB File) to small JPG Thumbnail, place on a Apache HTTP Server and share the location (like <a href="http://happyplace/thumbnail0987.jpg" rel="noreferrer">http://happyplace/thumbnail0987.jpg</a>)</p>
  
  <p>Now the Second Response should come from Server with Status 200 OK and Thumbnail URL</p>
  
  <p>is it feasible with one REST API? (Async/similar)</p>
  
  <p>or should I split it to 2 API calls, <strong>Please suggest</strong></p>