api rest ruby on rails