This is not REST API per se, but it's something that we've used in production for a couple years now and it's working like a charm
https://github.com/robertzk/microserver https://github.com/kirillseva/rain
This way our rails app can communicate with R prediction backend and we end up using the right tool for each task