Bird
0
0

What is wrong with this API request: /invoices?fields[invoices]=date;amount?

medium📝 Debug Q6 of 15
Rest API - Advanced Patterns
What is wrong with this API request: /invoices?fields[invoices]=date;amount?
AThe resource name should be pluralized differently
BSquare brackets are missing around the resource name
CSemicolon is used instead of a comma to separate fields
DThe fields parameter should be capitalized
Step-by-Step Solution
Solution:
  1. Step 1: Review field separator syntax

    Fields must be separated by commas, not semicolons.
  2. Step 2: Identify error

    The semicolon in date;amount is invalid syntax.
  3. Final Answer:

    Semicolon is used instead of a comma to separate fields -> Option C
  4. Quick Check:

    Use commas to separate fields [OK]
Quick Trick: Separate fields with commas, not semicolons [OK]
Common Mistakes:
MISTAKES
  • Using semicolons instead of commas
  • Omitting brackets around resource
  • Incorrect capitalization of parameters

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes