3 ms·
What about the ability to look at API responses in a browser? You can't normally change the request headers a browser sends without some type of plugin. Inclu
by umjames 15y ago
What about the ability to look at API responses in a browser? You can't normally change the request headers a browser sends without some type of plugin.
Including the version number in the URL gets around this and even allows you to test API responses in mobile browsers if needed.
Although I tend to agree that a header-based approach is cleaner and more in the spirit of REST and even HTTP.