title: AngularJS RESTful params
body: <p>Is it possible to use the AngularJS <code>$http</code> service to parameterize a restful url?  For example:</p>
  
  <pre><code>var URL = '/api/countries/:countryId/states'
  
  var getStates = function (countryId) {
      $http.get(URL, { countryId: countryId }).then();
  };
  </code></pre>
  
  <p>Every combination I try ends up using a query string, which is not what I want.</p>