title: How to keep API Restful when GET request requires sizable JSON payload?
body: <p>I'm building a java REST API using JAX-RS and to complete a GET request for a zip file I need a rather sizeable chunk of JSON to complete it. I'm not terribly experienced with REST but I do know that <code>GET</code> requests shouldn't have a request body and a <code>POST</code> shouldn't be returning a resource. So I guess my question is, how do I complete a request that contains JSON (currently in the message body) and expects a zip file in the response while keeping the application RESTful? It may be worth noting that the JSON could also contain a password </p>