Click here to Skip to main content
15,884,353 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
if using
$http.delete('api/contacts', Id);

Then getting error.

But When Using Like this

$http.delete('api/contacts/'+ Id);

Executing .

I don't Want to use URL Binding To pass data....

Please Help Me To Solve
Posted

1 solution

According to Restiful API, the delete spec requires you to pass the id.

If you don't want to pass it through the url, then use POST but then your app will not be following restful api styles.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900