PrepAway - Latest Free Exam Questions & Answers

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?

PrepAway - Latest Free Exam Questions & Answers

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