javascript - Log Restangular POST Request Data -
i new restangular. searched several posts did not find content looking for. hybrid mobile app. development. query 1:
i have set baseurl http://example.com/api/v1. assuming make below request data object parameter. how console request data check sending ? tried getrestangularurl() getrequestedurl()
both gives url.
var servicelocator = restangular.all('servicelocator') return { servicelocator: function (name) { var data= { "name":name } return servicelocator.post(data); } }
query 2:
i have many requests available in application. now, erquirement enable more security need add 1 more parameter each request being sent.is there global way add ? tried setdefaultrequestparams of restangular unable print logs verify it.
Comments
Post a Comment