DEV Community

Discussion on: Real World Developer's Problems: API Versioning

Collapse
 
lirantal profile image
Liran Tal

An HTTP Accept Header is probably the most semantic way to convey the versioning intent.
I don't like the URL usage at all as that couples versioning to the URL, and the custom header is generally alright except it can be an issue in the wild web of proxies etc that would get in the way of that.

I wrote a couple of libraries that work together to achieve route-based API versioning for Express if anyone is needing that for Node.js based applications: