If the parameters that you pass when you call the resource do not match any of the placeholders specified in the URL, they are automatically converted to query string parameters. Therefore, you should do something like:
angular.module(Animals, ['$resource', '$route', '$location', function($resource, $route, $location) { return $resource('http://thezoo.com/animals', { query: {method: 'GET', isArray: true}}); }]);
and then when you try to use it, you can do:
Animals.query({size:"med",gender:'f'});
and it will be translated into:
http:
Chris source share