Create rails api