My first api in Ruby on Rails.