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



Leave a Reply 9

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


Psehgaft

Psehgaft

The correct Answer is:
D. PUT

beep

beep

why put and not post ?

beep

beep

why is it put and not post?

Test

Test

When an object already exists, it’s a “put”. When it’s a new object, it’s a “post”.

Dziri

Dziri

That’s correct.

Pepe

Pepe

PUT is used for edit/update item
POST is used when you to create a new item

rubenm

rubenm

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.

Shaun G

Shaun G

Answer is D, moderate – apdate