refactored endpoint and webApiIntegration configuration;