Add initializeApiEndpoint() and remove path from API Endpoint URL