1var xhr = new XMLHttpRequest();
2xhr.open('POST', 'https://API_ID.execute-api.API_REGION.amazonaws.com/STAGE/');
3xhr.onreadystatechange = function (event) {
4 console.log(event.target.response);
5}
6xhr.setRequestHeader('Content-Type', 'application/json');
7xhr.send(JSON.stringify({age: 26, height: 71, income: 2100}));