System Design · Junior · Question 33 of 75

Why version an API (/api/v1/...)?

Explanation

Mobile apps and old browser tabs keep using the old contract for a long time. Breaking changes go into a new version, while non-breaking ones (new optional fields) are added to the existing one. The version can be passed in the URL or a header.

Further reading

Problem with a question

System Design · Junior · question 33

Test yourself

Take the System Design · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz