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

Popular posts from this blog

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -