How do you handle API versioning, and what are the tradeoffs of URI, header, and media type versioning?
Last updated
URI versioning (
/v1/users) is visible, cacheable, and easy to test, but gives one resource many URIs and forces clients to rewrite URLs to upgrade.Header (
X-API-Version) and media type (Accept: application/vnd.myapp.v2+json) versioning keep URIs stable and are more RESTful, but are less discoverable and harder to test and cache.The tradeoff is simplicity and visibility versus purity. Most public APIs pick URI versioning for pragmatism and keep old versions alive until clients migrate.
- https://www.sendowl.com/s/job-search
- https://www.ashokit.in/blog/top-microservices-interview-questions-and-answers
- https://www.resumeadapter.com/blog/full-stack-developer-resume-keywords
- https://meduzzen.com/hire/backend-developers/
- https://www.greatfrontend.com/blog/latest
- https://prepfully.com/interview-guides/hubspot-software-engineer
- https://www.getsmartresume.com/article/netflix-internship-new-grad-opportunities