Quantcast
Viewing latest article 4
Browse Latest Browse All 8

Answer by Brian Ploetz for API Versioning for Rails Routes

I'm not sure why you want to redirect to a specific version if a version isn't explicitly requested. Seems like you simply want to define a default version that gets served up if no version is explicitly requested. I also agree with David Bock that keeping versions out of the URL structure is a cleaner way to support versioning.

Shameless plug: Versionist supports these use cases (and more).

https://github.com/bploetz/versionist


Viewing latest article 4
Browse Latest Browse All 8

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>