Ajax - get request API

0 votes
128 views
added Aug 1, 2019 in API by LC Marshal Captain (25,770 points)
$.ajax({
  url: "http://dummy.restapiexample.com/api/v1/employees",
  type: 'GET',
  dataType: 'json', 
  success: function(contentData) {
    console.log(contentData);
    // alert(res);
  }
});

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...