Provide API with asp.net MVC Web Application

Elamsaitest

New Member
I currently have a MVC 3 Web Application with around 50 Views.Is it somehow possible to provide some kind of API next to my Views so everything still works fine and dandy?My kinda perfect world idea:Server is running and every request gets to its view. The user can decide in his get request if he wants the raw data in lets say JSON. Additional to the raw data also the Structure/Names of the Viewmodel will be parsed so the Modelbinder can do his stuff.or another approach might be to somehow deactivate my Views to have only the API available (again with raw data and structure).Is this even possible (the modelbinder is kinda a big concern) and maybe even without much effort/trouble to do?
 
Back
Top