FastFoodCoding

Login


Connect with one of the following accounts





Login

Please wait while we redirect...

Views: 699   



Simple GET Call

$.ajax({
        url: '/api/endpoint/',
        complete : function(data){
        console.log('Status Code:' + data.status);
        console.log('Response:' + data.responseText);
    }
});

Simple POST Call with application/json content type

$.ajax({
        url: '/api/endpoint/',
        type: "POST",
        data: JSON.stringify(content),
        contentType: 'application/json',
        dataType: 'json',
        complete : function(data){
        console.log('Status Code:' + data.status);
        console.log('Response:' + data.responseText);
    }
});



On By


Top Tutorials

Top Questions

Top Articles

Top Blogs

Top News