Versioning Your API: Shawn Wildermuth
Versioning Your API: Shawn Wildermuth
Shawn Wildermuth
MICROSOFT MVP, INSTRUCTOR, AND FILMMAKER
@shawnwildermuth wildermuth.com
Once you publish an API, it's set in stone
- Users/Customers rely on the API
- But requirements will change
What Is API - Need a way to evolve the API
Versioning? • Don’t break clients
- API Versioning isn't Product Versioning
• Don't tie them together
In .NET
- Is done with ‘package’ versions
// URI Path
https://foo.org/api/v2/Customers
// Query String
https://foo.org/api/Customers?v=2.0
Versioning with Headers
Introducing Versioning
Demo
Versioning Actions
Demo
Versioning Controllers
Demo
URL Versioning
Demo
Versioning Conventions
The Versioning Library supports:
Other - Versioning by Namespaces