Bird
Raised Fist0

An API developer removed versioning and changed the response format, causing client failures. What is the best way to fix this issue?

medium📝 Debug Q7 of Q15
Rest API - Versioning Strategies
An API developer removed versioning and changed the response format, causing client failures. What is the best way to fix this issue?
AForce all clients to update immediately to the new format
BReintroduce versioning so clients can continue using the old format
CRemove the changed fields from the response to match old format
DIgnore client errors and monitor for issues
Step-by-Step Solution
Solution:
  1. Step 1: Identify problem caused by removing versioning

    Clients break because they rely on old response format.
  2. Step 2: Best fix is to reintroduce versioning

    This allows clients to choose compatible API versions.
  3. Final Answer:

    Reintroduce versioning so clients can continue using the old format -> Option B
  4. Quick Check:

    Versioning enables backward compatibility [OK]
Quick Trick: Reintroduce versioning to fix breaking changes [OK]
Common Mistakes:
MISTAKES
  • Assuming forcing all clients to update is feasible
  • Thinking removing fields silently fixes issues
  • Ignoring client errors is not a solution

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes