Switch to rails-api