JSON API with RoR for virtual Closet application