Implement attachment and  detail resource