def concatenate_url(endpoint, url):
    """ concatenate endpoint & url
    :param endpoint: the base url for example http://localhost:port/v1
    :param url: the target url for example "/dashboard"
    :return: concatenated url for example http://localhost:port/v1/dashboard
    """
    return "%s/%s" % (endpoint.rstrip("/"), url.rstrip("/"))