RailsCasts Pro episodes are now free!

Learn more or hide this

Applied Filters: rest xFree Episodes xRouting x
REST API Versioning
Episode #350May 16, 2012108 comments

REST API Versioning

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. (10 minutes)
Custom REST Actions
Episode #35May 23, 200765 comments

Custom REST Actions

REST adds many constraints. It restricts your controllers to seven actions. Normally this is okay, but sometimes you need to add your own custom actions. Learn how in this episode. (8 minutes)