Split the base URL and api path