sample api test online code example
Example 1: dummy api json
var xhr = new XMLHttpRequest();
xhr.open("GET", "https://reqres.in/api/products/3", true);
xhr.onload = function(){
console.log(xhr.responseText);
};
xhr.send();
Example 2: sample api test online
let url = 'https://api.sheety.co/5f379c8292c16fcc323cfab50592b0e0/licences/feuille1';
fetch(url)
.then((response) => response.json())
.then(json => {
// Do something with the data
console.log(json.feuille1S);
});