API Testing · Senior · Question 4 of 75
Why review an API design before code is written?
- 1Designs that pass review don't need tests afterwards
- 2Code reviews of the implementation can't find any API problems
- 3Changing a published contract later is expensive for all clients
Show the answer
Correct answer: Changing a published contract later is expensive for all clients
Explanation
Spec-first reviews catch unclear errors, missing pagination or inconsistent naming when fixing them costs one edit, not a versioned migration.