Which HTTP verb should you use?

You are designing an ASP.NET Web API application.You need to select an HTTP verb to allow blog administrators to moderate a comment.
Which HTTP verb should you use?

You are designing an ASP.NET Web API application.You need to select an HTTP verb to allow blog administrators to moderate a comment.
Which HTTP verb should you use?

A.
GET

B.
POST

C.
DELETE

D.
PUT

Explanation:
To edit/update/moderate an entry you use PUT.
UsePUT when you can update a resource completely through a specific resource.
http://restcookbook.com/HTTP%20Methods/put-vs-post/



Leave a Reply 0

Your email address will not be published. Required fields are marked *