REST API implemented in Ruby on Rails