Automation and Programmability

Which HTTP verb normally retrieves a resource from a REST API without modifying it?

Show the answer

Correct answerA. GET

AWhy this is right: GET requests a representation of a resource without modifying it.

BWhy not this: POST typically submits data for processing or creates a resource.

CWhy not this: DELETE requests removal of a resource.

DWhy not this: PATCH requests a partial modification of a resource.

GET retrieves a representation of a resource without requesting a change to it. POST typically submits data for processing or creates a resource rather than retrieving one.