title: HTTP POST with URL query parameters in Angular
body: <p>I am trying to send POST request which contains url param, url query params and body.</p>
  
  <p>My resource looks like this:</p>
  
  <pre><code>return $resource(myService.getResourceUrl('/users/:username/password'), {}, {
      resetPassword: {
          method: 'POST',
          params: {passwordResetToken: '@passwordResetToken'}
      }
  });
  </code></pre>
  
  <p>Resource is used in service:</p>
  
  <pre><code> resetPassword: function(username, password, config){
          return ru.handleErrors(passwordManagerResource.save({username: username}, password, config).$promise);
      }
  </code></pre>
  
  <p>And finally service is called in the main controller:</p>
  
  <pre><code>var config = {passwordResetToken: '39af3539-12f8-4285-8a96-526a25c0fa00'};
  
  var password = {password: 'Aaaaaaaa01'};
  
  userManagementService.resetPassword("test_user", password, config).then(function(res){
          console.log("helllloooo_again");
  }
  </code></pre>
  
  <p>However query parameters are not added to the url. Generated URL has following structure:</p>
  
  <p><a href="http://localhost:8080/ghostwriter/users/test_user/password" rel="nofollow">http://localhost:8080/ghostwriter/users/test_user/password</a></p>
  
  <p>instead of
  <a href="http://localhost:8080/ghostwriter/users/test_user/password?passwordResetToken=39af3539-12f8-4285-8a96-526a25c0fa00" rel="nofollow">http://localhost:8080/ghostwriter/users/test_user/password?passwordResetToken=39af3539-12f8-4285-8a96-526a25c0fa00</a></p>