make the apiUrl the root api url

the endpoint name won't change between instances, and it makes it easier to dynamically configure the api URL for multiple endpoints