Middleware framework for automatic communication between client-side and back-end datasources in web-rest environment