Added method to allow for changing the api root url