#350 REST API Versioning
RailsCasts (Mobile)
English - May 16, 2012 07:00 - 10 minutes - 14.5 MB Video - ★★★★★ - 58 ratingsTechnology Education How To rails ruby on rails screencasts podcasts tips tricks tutorials training programming railscast Homepage Download Apple Podcasts Google Podcasts Overcast Castro Pocket Casts RSS feed
Previous Episode: #348 The Rails API Gem
Next Episode: #352 Securing an API
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.