When to use the MVC4 Web-API vs a traditional HTTP web-service?
-
12-11-2019 - |
Question
I noticed when the MVC4 beta was announced, it includes a new "Web-API". (MVC 4 announcement)
In what circumstances should I use this Web-API instead of a normal HTTP/WCF Web-service? What problem is it trying to solve?
Solution
The Web API allows you to very easily expose an API of some existing web site (or build a new one) using standard RESTful techniques. Achieving the same goal with WCF would be a little more challenging but could be done. Scott Gu wrote a nice overview of the Web API.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow