Styrow.dev
Question 34 of 59

What are the most commonly used HTTP methods supported by REST?

Question

What are the most commonly used HTTP methods supported by REST?

Answer

GET is only used to request data from a specified resource.

Get requests can be cached and bookmarked. It remains in

the browser history and haS length restrictions. GET

requests should never be used when dealing with sensitive

data.

POST is used to send data to a server to create/update a

resource. POST requests are never cached and bookmarked

and do not remain in the browser history.

PUT replaces all current representations of the target

resource with the request payload.

DELETE removes the specified resource.

OPTIONS is used to describe the communication options

for the target resource.

HEAD asks for a response identical to that of a GET request,

but without the response body.