Going Beyond Versioning
Change is an inevitable part of APIs. Itâs pretty unlikely that youâll design, build, and deploy an API thatâs âjust rightâ and never needs to be updated. In fact, itâs a sign of a good API that people want to use it more often and come up with ways to make it even better. Popular APIs generate requests for changes. For that reason, we need to make changing APIs a regular part of our API practice.
The most common technique for handling API changes is to simply release a new, updated API in place of the old one. This is usually called âversioning your API.â Itâs the most common, but itâs not the safest. If youâre not careful, you can release a new API thatâs incompatible with existing uses. When ...
Get Design and Build Great Web APIs now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.