def get_endpoint(nautobot, term):
    """
    get_endpoint(nautobot, term)
        nautobot: a predefined pynautobot.api() pointing to a valid instance
                of Nautobot
        term: the term passed to the lookup function upon which the api
              call will be identified
    """

    endpoint_map = {
        "aggregates": {"endpoint": nautobot.ipam.aggregates},
        "circuit-terminations": {"endpoint": nautobot.circuits.circuit_terminations},
        "circuit-types": {"endpoint": nautobot.circuits.circuit_types},
        "circuits": {"endpoint": nautobot.circuits.circuits},
        "circuit-providers": {"endpoint": nautobot.circuits.providers},
        "cables": {"endpoint": nautobot.dcim.cables},
        "cluster-groups": {"endpoint": nautobot.virtualization.cluster_groups},
        "cluster-types": {"endpoint": nautobot.virtualization.cluster_types},
        "clusters": {"endpoint": nautobot.virtualization.clusters},
        "config-contexts": {"endpoint": nautobot.extras.config_contexts},
        "console-connections": {"endpoint": nautobot.dcim.console_connections},
        "console-ports": {"endpoint": nautobot.dcim.console_ports},
        "console-server-port-templates": {
            "endpoint": nautobot.dcim.console_server_port_templates
        },
        "console-server-ports": {"endpoint": nautobot.dcim.console_server_ports},
        "device-bay-templates": {"endpoint": nautobot.dcim.device_bay_templates},
        "device-bays": {"endpoint": nautobot.dcim.device_bays},
        "device-roles": {"endpoint": nautobot.dcim.device_roles},
        "device-types": {"endpoint": nautobot.dcim.device_types},
        "devices": {"endpoint": nautobot.dcim.devices},
        "export-templates": {"endpoint": nautobot.dcim.export_templates},
        "front-port-templates": {"endpoint": nautobot.dcim.front_port_templates},
        "front-ports": {"endpoint": nautobot.dcim.front_ports},
        "graphs": {"endpoint": nautobot.extras.graphs},
        "image-attachments": {"endpoint": nautobot.extras.image_attachments},
        "interface-connections": {"endpoint": nautobot.dcim.interface_connections},
        "interface-templates": {"endpoint": nautobot.dcim.interface_templates},
        "interfaces": {"endpoint": nautobot.dcim.interfaces},
        "inventory-items": {"endpoint": nautobot.dcim.inventory_items},
        "ip-addresses": {"endpoint": nautobot.ipam.ip_addresses},
        "manufacturers": {"endpoint": nautobot.dcim.manufacturers},
        "object-changes": {"endpoint": nautobot.extras.object_changes},
        "platforms": {"endpoint": nautobot.dcim.platforms},
        "power-connections": {"endpoint": nautobot.dcim.power_connections},
        "power-outlet-templates": {"endpoint": nautobot.dcim.power_outlet_templates},
        "power-outlets": {"endpoint": nautobot.dcim.power_outlets},
        "power-port-templates": {"endpoint": nautobot.dcim.power_port_templates},
        "power-ports": {"endpoint": nautobot.dcim.power_ports},
        "prefixes": {"endpoint": nautobot.ipam.prefixes},
        "rack-groups": {"endpoint": nautobot.dcim.rack_groups},
        "rack-reservations": {"endpoint": nautobot.dcim.rack_reservations},
        "rack-roles": {"endpoint": nautobot.dcim.rack_roles},
        "racks": {"endpoint": nautobot.dcim.racks},
        "rear-port-templates": {"endpoint": nautobot.dcim.rear_port_templates},
        "rear-ports": {"endpoint": nautobot.dcim.rear_ports},
        "regions": {"endpoint": nautobot.dcim.regions},
        "reports": {"endpoint": nautobot.extras.reports},
        "rirs": {"endpoint": nautobot.ipam.rirs},
        "roles": {"endpoint": nautobot.ipam.roles},
        "services": {"endpoint": nautobot.ipam.services},
        "sites": {"endpoint": nautobot.dcim.sites},
        "tags": {"endpoint": nautobot.extras.tags},
        "tenant-groups": {"endpoint": nautobot.tenancy.tenant_groups},
        "tenants": {"endpoint": nautobot.tenancy.tenants},
        "topology-maps": {"endpoint": nautobot.extras.topology_maps},
        "virtual-chassis": {"endpoint": nautobot.dcim.virtual_chassis},
        "virtual-machines": {"endpoint": nautobot.virtualization.virtual_machines},
        "virtualization-interfaces": {"endpoint": nautobot.virtualization.interfaces},
        "vlan-groups": {"endpoint": nautobot.ipam.vlan_groups},
        "vlans": {"endpoint": nautobot.ipam.vlans},
        "vrfs": {"endpoint": nautobot.ipam.vrfs},
    }

    return endpoint_map[term]["endpoint"]