Bird
0
0

You want to export all products with price above 100 in bulk from a REST API. Which approach correctly combines bulk export with filtering?

hard📝 Application Q15 of 15
Rest API - Batch and Bulk Operations
You want to export all products with price above 100 in bulk from a REST API. Which approach correctly combines bulk export with filtering?
ASend a DELETE request to /products with filter price>100
BSend a POST request with JSON [{"price": ">100"}] to /products/export
CSend a GET request to /products?min_price=100 and parse the returned list
DSend a PUT request to /products/export with price filter in body
Step-by-Step Solution
Solution:
  1. Step 1: Identify correct HTTP method for export

    Bulk export uses GET to retrieve data from the server.
  2. Step 2: Use query parameters for filtering

    Filtering by price is done via query string like ?min_price=100.
  3. Final Answer:

    Send a GET request to /products?min_price=100 and parse the returned list -> Option C
  4. Quick Check:

    Bulk export uses GET with filters in query [OK]
Quick Trick: Use GET with query filters for bulk export [OK]
Common Mistakes:
MISTAKES
  • Using POST for export instead of GET
  • Sending filters in request body for GET
  • Using DELETE or PUT incorrectly

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes