Example rest api built in ruby on rails