Move api url calls to refer to the apiEndPoints file