def endpoint(resource, ip='0.0.0.0', port=5000):
    """
    Defines the endpoint URL for the resource.

    Parameters
    ----------
    resource : str
      Resource to access.
    ip : str, optional
      IP address of the serer. Default is ``'0.0.0.0'``
    port : int, optional
      Port the server is listening on. Default is ``5000``
    """
    return f'http://{ip}:{port}/{resource}'