[APPS-718] refactored the searchApiEndpoint variable.