rails-api applied