Strip trailing slash if present in apiURL: individual API calls duplicate it
make code to remove trailing slash a bit shorter