support rails-api