I want to delete user using REST API. I try to use
id = $(this).attr('rel');
$.ajax({
url: App.url+'/allusers/users/'+id,
type: 'DELETE',
success: function(data){
alert(data);
}
});
I want to delete user using REST API. I try to use
id = $(this).attr('rel');
$.ajax({
url: App.url+'/allusers/users/'+id,
type: 'DELETE',
success: function(data){
alert(data);
}
});
There is DELETE HTTP method used to delete in REST.