I like Web API controllers in ASP.NET because I can create HTTP-based services that return JSON (since JSON is so easy for JavaScript to digest).
What I don't understand is how this new tool differs from MVC3 controllers. I could do that in MVC3.
Web API controllers can return XML or JSON on the fly which is *yawn* sort of nice, at least if I was writing views to be coupled to two different formats.
I don't mind having to end the name of my controllers now with the word "controller", but -like hungarian notation- this doesn't seem to add a lot of value either (reminds me of the guy in the Far Side comic who painted "CAT" on his cat
and "HOUSE" on his house ... I don't hold it against him, but I'm not having trouble recalling that my house is a house).
The articles I've read about ASP.NET Web API seem very top-down, cerebral even. They detail a meta-narrative of SOAP enclaves yielding to HTTP. If that's true, how does Web API support HTTP more than the MVC3 controllers? In what way does a developer notice
more HTTP-ey things going on?
I'm glad the ASP.NET team understands the selling features of MVC3, but it seems like they kind of re-invented the wheel on this one.