Version an API
Talk it through out loud with your AI coach.
The problem
- medium
- Pro
Your public API's customer endpoint returns a single name field, and you need to split it into first and last name. Hundreds of mobile app versions and partners depend on it. Explain how you'd evolve the API without breaking them.
What a strong answer covers
- Telling changes that are safe apart from ones that break clients.
- Evolving the response without taking anything away.
- Ways to version a breaking change, and their trade-offs.
- How to retire the old shape safely over time.
Common mistake: Jumping straight to a new version for a change that could have been made by only adding fields.
Knowing this is half of it. Saying it clearly out loud is the part the coach helps you practise.
Practise it out loud