[#17] extended api_helpers to transform docs to resources based on resource type