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