I am learning and starting now working with Restangular and AngularJS. Therefore the question may seem simple:
I need to send a token, within the GET message and do not appear in the URL.
Ex: http://www.example.com/patients
I need to pass
{"token": 1}
But I do not want to appear like this:
http://example.com/patients?token=1
or something like that.
Works testing with CURL, with the following command:
curl -i -X GET -d '{"token": 1}' http://example.com/patients; echo
My source code:
RestangularProvider.setBaseUrl('http://example.com');
Restangular.all('patients').getList().then(function(records)
{
....
}
Does anyone know what needs to be done?