5

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?

1 Answer 1

7

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.

Sign up to request clarification or add additional context in comments.

1 Comment

I've been thinking that a Controller could easily be used to implementing a RESTful service, and you're right. It would be easier than doing it in WCF. Thanks!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.