I was able to create the following get request: (notice there are 2 deliverytypeid's)
http://localhost:8080/rule?*deliverytypeid*=1&*deliverytypeid* =3&inputtypeid=1&languageid=1&materialtypeid=1 Here is my $promise that I use to call the $resource: var selectedInputTypeId = $scope.selectedInputType.id; var selectedMaterialTypeId = $scope.selectedMaterialType.id; var selectedLanguage = $scope.selectedLanguage.id; var selectedDeliveryTypes = getSelectedDeliveryTypeIds(); //This returns an array of numbers. var rulesPromise = MyService.getRules(selectedInputTypeId, selectedMaterialTypeId, selectedLanguage, selectedDeliveryTypes); rulesPromise.$promise.then(function (rulesData) { $scope.rules = rulesData }); The key for me was to not specify defaultParams in the $resource call --> var ruleResource = $resource('/rule', {}, { Here is my factory method: myServices.factory('MyService', [ '$resource', function ($resource) { var ruleResource = $resource('/rule', {}, { 'get': {method: 'GET', isArray: true} }); return { getRules: function(inputTypeId, materialTypeId, languageId, deliveryTypeId) { var ruleResponse = ruleResource.get({inputtypeid:inputTypeId, materialtypeid:materialTypeId, languageid:languageId, deliverytypeid:deliveryTypeId }); return ruleResponse; } }; } ]); -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
