Changed the restApiUrl from a factory to a constant