Not related to this commit, but I've just realized we're assuming `endPoint` doesn't have query parameters. Not sure how bad that could be.