MuleSoft
MCD-LEVEL-1 · Question #145
What HTTP method in a RESTful web service is typically used to completely replace an existing resource?
The correct answer is C. PUT. PUT replaces the original version of the resource, whereas the PATCH method supplies a set of instructions to modify the resource
API Design and RESTful Principles
Question
What HTTP method in a RESTful web service is typically used to completely replace an existing resource?
Options
- AGET
- BPATCH
- CPUT
- DPOST
How the community answered
(63 responses)- A2% (1)
- B3% (2)
- C89% (56)
- D6% (4)
Explanation
PUT replaces the original version of the resource, whereas the PATCH method supplies a set of instructions to modify the resource
Topics
#HTTP methods#REST#PUT#resource replacement
Community Discussion
No community discussion yet for this question.