json api test data 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: generating test data in api
For API Part: I use "https://www.mockaroo.com/" ==>
generates multiple format (CSV, JSON, XML, etc)