title: How to pass a query string in the URL with PUT or POST on an array?
body: <p>I am trying to make an update on a list of elements using an angular $resource service: </p>
  
  <pre><code>.factory('Elements', ['$resource', function($resource) {
      return $resource('../api/:type/:id', 
          {   type:'@type', id:'@id' }, 
          {   update: { method: 'PUT' }, 
              updateList: { method: 'PUT', isArray: true }
          });
      }])
  </code></pre>
  
  <p><strong>1</strong> inside the controller, this function <strong>updates a single object</strong>: </p>
  
  <pre><code>element.update({ 'name': name, 'value': value }); 
  </code></pre>
  
  <p>It sends an HTTP PUT request to the server with this url: <code>/api/theType/theId?name=theName&amp;value=theValue</code>. This is working fine. </p>
  
  <p><strong>2</strong> Now, instead of a single object, this function <strong>updates an array of objects</strong>, using the <code>updateList</code> method: </p>
  
  <pre><code>elements.updateList({ 'name': name, 'value': value }); 
  </code></pre>
  
  <p><strong>the problem:</strong> </p>
  
  <p>In this case, the requested URL is <code>/api/theType</code>. But why the query string (<code>name=theName&amp;value=theValue</code>) is not here anymore?</p>
  
  <p><strong>How to pass a query string in the URL when updating an array with PUT?</strong> </p>