0
if I have an API that requires two mandatory parameters to be consumed, how should I insert them in 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);
    })
}
How I try to consume the API from the message below in the developer tab:


what’s wrong?
data: {uf: 'sp', id_especialidade: 1 }doesn’t work?– Lucas Duete
Yeah, I tried to. Thus: date: {Uf:'ES',id_specialty: 0001 } Continues to accuse error of the state code, which needs to be capitalized. So I wondered if I was doing it right.
– Codeman