Bird
0
0

You want to filter orders by status 'shipped' using /orders?status=shipped, but the API returns all orders. What is the likely problem?

medium📝 Debug Q14 of 15
Rest API - Query Parameters and Filtering
You want to filter orders by status 'shipped' using /orders?status=shipped, but the API returns all orders. What is the likely problem?
AThe query parameter should be <code>?state=shipped</code> instead
BThe URL is missing a trailing slash
CThe API does not support filtering by 'status'
DThe filter value 'shipped' is case-sensitive and should be uppercase
Step-by-Step Solution
Solution:
  1. Step 1: Check API documentation for supported filters

    If 'status' is not a supported filter field, the API ignores it and returns all data.
  2. Step 2: Evaluate other options

    Changing parameter name or case only works if API supports it; trailing slash usually doesn't affect filtering.
  3. Final Answer:

    The API does not support filtering by 'status' -> Option C
  4. Quick Check:

    Unsupported filter = no effect [OK]
Quick Trick: Check API docs for allowed filter fields first [OK]
Common Mistakes:
  • Assuming any field can be filtered
  • Changing URL format without docs
  • Ignoring case sensitivity without confirmation

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes