

def build_swagger_12_endpoints(resource_listing, api_declarations):
    '\n    :param resource_listing: JSON representing a Swagger 1.2 resource listing\n    :type resource_listing: dict\n    :param api_declarations: JSON representing Swagger 1.2 api declarations\n    :type api_declarations: dict\n    :rtype: iterable of :class:`pyramid_swagger.model.PyramidEndpoint`\n    '
    (yield build_swagger_12_resource_listing(resource_listing))
    for (name, filepath) in api_declarations.items():
        with open(filepath) as input_file:
            (yield build_swagger_12_api_declaration(name, simplejson.load(input_file)))

dataset/ETHPy150Open striglia/pyramid_swagger/pyramid_swagger/api.py build_swagger_12_endpoints/original