def get_descriptor_defaults(self, api_info, hostname=None):
    hostname = hostname or api_info.hostname
    defaults = {
        'extends': 'thirdParty.api',
        'root': 'https://%s/_ah/api' % hostname,
        'name': api_info.name,
        'version': api_info.version,
        'defaultVersion': True,
        'abstract': False,
        'adapter': {
            'bns': 'https://%s/_ah/spi' % hostname,
            'type': 'lily'
        }
    }
    if api_info.canonical_name:
      defaults['canonicalName'] = api_info.canonical_name
    return defaults
Send a packet out a given interface
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/endpoints/api_config.py/ApiConfigGenerator.get_descriptor_defaults--crossover with--dataset/ETHPy150Open ucb-sts/sts/sts/entities/hosts.py/Host.send