문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top