def _get_base_resource_url(self, name, public=True, **kwargs):
    """Utility function to get url for a given base(/api/) resouce

    Args:
        name (str)

    Raises:
        KeyError: on key not found

    Returns:
        str: url to named resource
    """
    res = self._get_base(**kwargs).get(name) if public else f"/api/{name}"
    
    if not res:
        raise KeyError(f"'/api/ has no such key '{name}', available keys = {self.list_resources()}")
    return res