JSON API in Rails for virtual Closet application