-13 karma · joined Mar 22, 2013 (13y ago) · 58 submissions
comment 3y ago · link · parent
comment 3y ago · link · parent
If the version is part of the URL, you have benefits such as -
1. It's easy to inspect the URL. For headers it's more involved.
2. Middleware (Proxies) can drop headers that they don't recognize.
3. Logging frameworks typically log URLs but don't log headers OOTB.
As someone who has built a lot of APIs for a long time, I think the decision to use headers to communicate versioning information is not optimal.