# #350 REST API Versioning

> Episode of [RailsCasts](https://podistic.com/podcast/railscasts.md) · Published May 16, 2012 · Duration 10:40

- **Listen on Podistic:** https://podistic.com/episode/350-rest-api-versioning
- **Video:** http://media.railscasts.com/assets/episodes/videos/350-rest-api-versioning.mp4 (video/mp4)

## About this episode

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.
