make sure server URL ends with slash, since we concatenate with rest URLs