A sample API in Ruby on Rails