public function getEndpointUrl($path, $withTrailingSlash)
    {
        $url = $this->endpoint . '/' . $path;
        
        if ($withTrailingSlash) {
            $url = $url . '/';
        }
        
        return $url;
    }
public function getEndpointUrl($path, $withTrailingSlash)
    {
        $url = $this->endpoint . '/' . $path;
        
        if ($withTrailingSlash) {
            $url = $url . '/';
        }
        
        return $url;
    }
public function getEndpointUrl ( $ path , $ withTrailingSlash ) { $ url = $ this -> endpoint . '/' . $ path ; if ( $ withTrailingSlash ) { $ url = $ url . '/' ; } return $ url ; }
Get the endpoint url for the request
@param string $path
@param bool   $withTrailingSlash
@return string
Get the endpoint url for the request