If I have an API that requires two mandatory parameters to be consumed, how should I insert them into a $ http request?
self.buscaPrestadores = function()
{
$http({
method: 'GET',
url: self.urlPrestadores,
headers: { 'Content-Type': 'application/json' }
data: {'parametro1':abc,'parametro2':abc }
}).then(function(resposta) {
var json = {};
json = resposta.data.data;
console.log(json);
})
}
HowmuchdoItrytoconsumetheAPIofthefollowingmessageinthedeveloperguide: