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
9 Comments on “Which HTTP verb should you use?”
Psehgaftsays:
The correct Answer is:
D. PUT
1
0
beepsays:
why put and not post ?
0
0
beepsays:
why is it put and not post?
0
0
Testsays:
When an object already exists, it’s a “put”. When it’s a new object, it’s a “post”.
0
0
Dzirisays:
That’s correct.
0
0
Pepesays:
PUT is used for edit/update item
POST is used when you to create a new item
0
0
rubenmsays:
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.
The correct Answer is:
D. PUT
1
0
why put and not post ?
0
0
why is it put and not post?
0
0
When an object already exists, it’s a “put”. When it’s a new object, it’s a “post”.
0
0
That’s correct.
0
0
PUT is used for edit/update item
POST is used when you to create a new item
0
0
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.
0
0
http://restcookbook.com/HTTP%20Methods/put-vs-post/
0
0
Answer is D, moderate – apdate
0
0