a basic rails-api example