Change the way an API is created, this time adding a base url