title: How to send a body request with GET
body: <p>I'm working with angularjs, and from my service I have to make a call to the server using a path parameter (id), query params (var1 and var2) <strong>and a body request</strong> ({"codes": ["1000"]}) - which has to be sent as an string array, within a get method (I know, sending a body request should be done within a POST).</p>
  
  <p>So far, in my service I have this:</p>
  
  <pre><code>        function getSub(id, var1, var2) {
             var payload = {
                 first: var1,
                 second: var2
             };
  
             var url = 'sub/' + id + '/mylink'
             return api.get(url, payload, {"codes": ["1000"]}).then(function (response) {
                 console.log("READ RESPONSE ", response);
                 return response;
             });
          };
  </code></pre>
  
  <p>So far, all I am getting is a bad request error linked to the response body not provided.</p>
  
  <p>It may be a noob question, and not a best practice one, but I meed to find a solution for this. So far, by searching the net far and wide, I could only understand that this is an unorthodox way of using body request.</p>
  
  <p>Thanks in advance!</p>