I am trying to develop a MVC application totally based on REST APIs. Case 1: If I want to use web browser, then I want to keep views enabled. Case 2: If I want to use app, then I want the REST API to return JSON output and disable the views.
Moreover, is there any generic way to handle both the cases simultaneously?
Any help would be appreciated !!