fetch with xml api code example
Example 1: fetch api
// Making get requests
const url = "http://dummy.restapiexample.com/api/v1/employees";
fetchurl()
.then(res => {
console.log(res);
})
.catch(err => {
console.log('Error: ${err}' );
});
Example 2: xml http request fetch
fetch('my/url/').then(respone()=>{
console.log(response);
}