def collection_names(doc):
    """
    Get the names of all the collection endpoints in a given HydraDoc object
    """
    return [collection_object['collection'].name
            for collection_object in doc.collections.values()]