This is how I use Angular's $http.get to send parameters to a REST endpoint. It works:
var httpParams = {'myparam1': 'Hello'};
$http.get('http://localhost:8976/my/url', {'params': httpParams}).then(successFunc, failureFunc);
This sends a GET call that is equivalent to the following CURL command:
curl --request GET "http://localhost:8976/my/url?myparam1=Hello"
But now want to send a DELETE request with the same URL and the same parameters. How do I do it? This doesn't work:
var httpParams = {'myparam1': 'Hello'};
$http.delete('http://localhost:8976/my/url', {'params': httpParams}).then(successFunc, failureFunc);
The URL gets hit, but the parameters are not received by the REST endpoint.
$http.delete("http://localhost:8976/my/url?" + httpParams)var httpParams = $.param({ 'myparam1': 'Hello' });, use$.paramto convert it into query params.