API Versioning

Learn how versioning helps manage changes in an API in an orderly manner.

Introduction

Good API designs try to maintain stability at the API specification level to minimize the need for multiple versions of the same API. Even well-constructed APIs need changes due to the evolution of requirements and/or technology. A slight alteration can either break the functionality for those who utilize the API in their applications or lead to unwanted side effects in their functionality.

API versioning is the practice of developers improving their APIs while still leaving the prior iterations functional for clients. It gives users the freedom to upgrade to new versions at their own pace, rather than forcing the update onto them, which might break their existing application. For example, popular APIs, such as the Graph API for Facebook, might be in use for billions of users, and implementing an update to the API might make the application lose its functionality.

Level up your interview prep. Join Educative to access 70+ hands-on prep courses.