Good afternoon I have to make a query with the axios.get method, but it gives me the following message:
{
"Message": "No HTTP resource was found that matches the request URI 'https://URL/api/Metodo'."
}
I'm trying to solve it in the following way:
var nueva_url = encodeURI('https://URL/api/Metodo');
obtenerAsignaciones(nueva_url);
function obtenerAsignaciones(nueva_url) {
myApp.showIndicator();
return new Promise((res, rej) => {
axios.get(nueva_url, {
headers: {
Authorization: token_type + " " + access_token
}
}).then(function (response) {
console.log(response);
myApp.hideIndicator();
}).catch(function (error) {
console.log(error)
})
})
}
But I keep generating the same message
What could it be? Thanks.