Allow apiEndPoint to be configurable