Professional Documents
Culture Documents
RestApI Versioning
RestApI Versioning
Requirement change
This is the most commonly used and straightforward approach while versioning a REST API. Let’s take an
example of following resources – products and customers.
https://hostname/v1/products
https://hostname/v1/customers
Let’s assume that we are introducing groundbreaking changes to the REST API, to represent this, we
introduce a new version to our REST API resource structure
https://hostname/v2/products
https://hostname/v2/customers
http//locaolhost:8000/api/customers?v1=1.1
Accept-version: v1
Accept-version: v2