How do you version an API for specific mobile or web clients?
What happens when you have a bug in your API, and you need to fix it for some clients (the updated ones), but not for others? This screencast illustrates a strategy for adjusting an API's behavior for specific clients. We'll be using the Ruby on Rails framework emitting JSON to demonstrate this important web and API concept.
Using Rails for API-only Applications -- Ruby on Rails Guides