(self, api_id)
Access an API instance for an external API.

        .. note::

            Internally hosted APIs are not modifiable at run-time
            so this only returns access to the Externally hosted API.

        :param text_type api_id: the id of the API instance
        :returns: The :obj:`IExternalAPIMock` instance supporting the
            externally hosted API.
        :raises: IndexError if it is unable to find an API by the given
            name.
Access an API instance for an external API.
Access an API instance for an external API .
def get_external_api(self, api_id):
        """
        Access an API instance for an external API.

        .. note::

            Internally hosted APIs are not modifiable at run-time
            so this only returns access to the Externally hosted API.

        :param text_type api_id: the id of the API instance
        :returns: The :obj:`IExternalAPIMock` instance supporting the
            externally hosted API.
        :raises: IndexError if it is unable to find an API by the given
            name.
        """
        if api_id in self._uuid_to_api_external:
            return self._uuid_to_api_external[api_id]
        else:
            raise ServiceDoesNotExist(
                "Unable to locate an API  the id" + str(api_id)
            )
def get_external_api ( self , api_id ) : if api_id in self . _uuid_to_api_external : return self . _uuid_to_api_external [ api_id ] else : raise ServiceDoesNotExist ( "Unable to locate an API  the id" + str ( api_id ) )