RailsCasts

#350 REST API Versioning

05.16.2012 - By Ryan BatesPlay

Download our free app to listen on your phone

Download on the App StoreGet it on Google Play

APIs should be consistent, but it is difficult to do this when returning a JSON response along side the HTML interface. Here I show how to add a versioned, RESTful API. The version can be determined from either the URL or HTTP headers.

More episodes from RailsCasts