simplifying rest resources with representations