Bird
0
0

Which HTTP request line correctly deletes the resource with ID 45 located at /items?

easy📝 Syntax Q3 of 15
Rest API - HTTP Methods
Which HTTP request line correctly deletes the resource with ID 45 located at /items?
AGET /items/45 HTTP/1.1
BPOST /items/45 HTTP/1.1
CDELETE /items/45 HTTP/1.1
DPUT /items/45 HTTP/1.1
Step-by-Step Solution
Solution:
  1. Step 1: Identify HTTP method for deletion

    DELETE is the method used to remove resources.
  2. Step 2: Confirm URL format

    The resource ID is appended to the path: /items/45.
  3. Final Answer:

    DELETE /items/45 HTTP/1.1 -> Option C
  4. Quick Check:

    DELETE + resource path + ID [OK]
Quick Trick: DELETE method with resource ID in URL [OK]
Common Mistakes:
  • Using POST or GET instead of DELETE
  • Omitting the resource ID in the URL
  • Confusing PUT with DELETE

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes