def make_items_for(brains_or_objects, endpoint=None, complete=False):
<EOL>include_children = req.get_children(False)<EOL>def extract_data(brain_or_object):<EOL><INDENT>info = get_info(brain_or_object, endpoint=endpoint, complete=complete)<EOL>if include_children and is_folderish(brain_or_object):<EOL><INDENT>info.update(get_children_info(brain_or_object, complete=complete))<EOL><DEDENT>return info<EOL><DEDENT>return list(map(extract_data, brains_or_objects))<EOL>
Generate API compatible data items for the given list of brains/objects

    :param brains_or_objects: List of objects or brains
    :type brains_or_objects: list/Products.ZCatalog.Lazy.LazyMap
    :param endpoint: The named URL endpoint for the root of the items
    :type endpoint: str/unicode
    :param complete: Flag to wake up the object and fetch all data
    :type complete: bool
    :returns: A list of extracted data items
    :rtype: list