PUT/GET with Payload using Restangular PUT/GET with Payload using Restangular angularjs angularjs

PUT/GET with Payload using Restangular


So, for point #1. it puts the object at hand, not another object. So you have 2 options:

Option 1

var passReq = Restangular.all('Partners').one('Password');passReq.confirmPassword = ....passReq.put(); // confirmPassword and the params of the object will be sent 

Option 2 is

var passReq = Restangular.all('Partners').one('Password').customPUT(obj);

For Point #2, you cannot send a request body (payload) in the GET unfortunately.