I have a URL mapping on my Spring REST controller that expects the URL to have three optional request parmeters. I have used @RequestParam annotation to define three optional parameters in the method that I defined below.
The URL works fine when I use a browser to hit the same.
The problem is when I try to hit the same url with my AngularJS service. I have worked with PathVariables in the past but am not sure how to pass these RequestParam variables into the URL.
Angular Service:
$resource(configuration.get('wsUrlPrefix') + 'abc/xyz/:page/:size/:sortData', {}, serviceConfig)
The URL turns out to be something like this:
and the backend is not able to recognize it.