def _extract_apis(self, resources):
<EOL>collector = ApiCollector()<EOL>for logical_id, resource in resources.items():<EOL><INDENT>resource_type = resource.get(SamApiProvider._TYPE)<EOL>if resource_type == SamApiProvider._SERVERLESS_FUNCTION:<EOL><INDENT>self._extract_apis_from_function(logical_id, resource, collector)<EOL><DEDENT>if resource_type == SamApiProvider._SERVERLESS_API:<EOL><INDENT>self._extract_from_serverless_api(logical_id, resource, collector)<EOL><DEDENT><DEDENT>apis = SamApiProvider._merge_apis(collector)<EOL>return self._normalize_apis(apis)<EOL>
Extract all Implicit Apis (Apis defined through Serverless Function with an Api Event

:param dict resources: Dictionary of SAM/CloudFormation resources
:return: List of nametuple Api