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
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
The correct Answer is:
D. PUT
why put and not post ?
why is it put and not post?
When an object already exists, it’s a “put”. When it’s a new object, it’s a “post”.
That’s correct.
PUT is used for edit/update item
POST is used when you to create a new item
The answer is PUT because this http verb is used to “modify”. POST is used to add new data.
POST works too but I think PUT is the right answer.
http://restcookbook.com/HTTP%20Methods/put-vs-post/
Answer is D, moderate – apdate