Bird
0
0

Which of the following URLs correctly represents a batch delete request for deleting orders with IDs 15, 25, and 35?

easy📝 Syntax Q3 of 15
Rest API - Batch and Bulk Operations

Which of the following URLs correctly represents a batch delete request for deleting orders with IDs 15, 25, and 35?

ADELETE /orders?ids=15,25,35
BPOST /orders/delete/15,25,35
CGET /orders/delete?ids=15,25,35
DPUT /orders/15,25,35
Step-by-Step Solution
Solution:
  1. Step 1: Identify HTTP method

    Batch delete operations typically use the DELETE method.
  2. Step 2: Check URL format

    Passing multiple IDs as a comma-separated list in the query parameter 'ids' is a common pattern.
  3. Final Answer:

    DELETE /orders?ids=15,25,35 -> Option A
  4. Quick Check:

    DELETE method with query param 'ids' [OK]
Quick Trick: Use DELETE with query param 'ids' for batch delete [OK]
Common Mistakes:
MISTAKES
  • Using POST or GET instead of DELETE
  • Incorrect URL path or method
  • Passing IDs in URL path without proper format

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes