IBM Rational Application Developer for WebSphere V8.5 — Question 2
What is the most common use for the POST HTTP method when using the REST API?
Answer options
- A. Delete a resource
- B. Retrieve a resource
- C. Create a new resource
- D. Update an existing resource
Correct answer: A
Explanation
The correct answer is C, as the POST method is typically used to create a new resource in a RESTful API. Options A and D refer to deletion and updating, respectively, which are typically handled by the DELETE and PUT methods. Option B is related to retrieving resources, which is accomplished using the GET method.