fake online rest api xml 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: fake online rest api xml
<x><value>false</value></x>