Adding Support for rails-api