Currently, I am working on a project using Polymer and I am interested in retrieving the response value from an API after making a POST request with Iron-Ajax.
Below is a snippet of my code:
var response = $.ajax({
type: "POST",
url: apiUrl,
data: _data,
dataType: "json",
contentType: 'application/json'
});
response.done(function (data) {
console.log(data);
alert(data);
}
});