I'm considering the following situation:
There is an angular REST service defined like this:
app.factory('example', function ($resource) {
return $resource('example/:id', {}, {
'doSomething': {method :'POST', url: 'example/doSomething/:id'},
});
});
It's connecting with some spring Controller, let's say defined like this:
@Controller
@RequestMapping("/example")
public class Controller {
//first method
@RequestMapping("/doSomething"){
...
}
//second method
@RequestMapping(method = RequestMethod.GET){
...
}
}
Would it be possible for Angular to connect with second method in
controller, if the default 'get' operation is not explicitly defined (there
is only doSomething), or the body of function must contain
'get':{method :'GET'} ?
Thank you in advance
--
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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.