Railscasts #350: REST API Versioning
Source: Oleksiy Kovyrin
APIs should be consistent, but it is difficult to do this when returning a JSON response alongside the HTML interface. In this podcast, the speaker will show how to add a versioned, RESTful API. The version can be determined from either the URL or HTTP headers.