code: def build_swagger_12_endpoints(resource_listing, api_declarations):
      
      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))
docs: :param resource_listing: JSON representing a Swagger 1.2 resource listing
      :type resource_listing: dict
      :param api_declarations: JSON representing Swagger 1.2 api declarations
      :type api_declarations: dict
      :rtype: iterable of :class:`pyramid_swagger.model.PyramidEndpoint`