api could end with a slash