wrote about rails api