JSON API using Rails for virtual Closet app