Adding a functionality to consume the RESTful API that serves the model