refactored endpoint and webApiIntegration configuration (2);