title: How can I pass multiple parameters separated with a ? and & using AngularJS $resource?
body: <p>I have the following action in an AngularJS $resource</p>
  
  <pre><code>getEntity: { url: '/api/:entityType/:entityId', method: 'GET' },
  </code></pre>
  
  <p>This sends something like the following to my server:</p>
  
  <pre><code>/api/xxx/123
  </code></pre>
  
  <p>I would now like to make it so the server receives:</p>
  
  <pre><code>/api/xxx?subjectId=12&amp;contentTypeId=23
  </code></pre>
  
  <p>Here is where I am calling the getEntity:</p>
  
  <pre><code>        getEntity: function (entityType, entityId) {
              var deferred = $q.defer();
              EntityResource.getEntity({ entityType: entityType, entityId: entityId },
                 function (resp) {
                     deferred.resolve(resp);
                 }
              );
              return deferred.promise;
          }
  </code></pre>
  
  <p>Can someone show me how I can do this.</p>