I am using ASP.NET MVC / WebAPI and Knockout to generate my views. I am trying to figure out where I should handle formatting, url generation, etc (I would normally do in my controller and return a view model).
Is is an ok practice to have my WebAPI return view models with preformatted data or should I leave that to the caller?
Please note the API is only used by my application