REST:一种软件架构风格,它是一种针对网络应用的设计和开发方式,能够下降开发的复杂性,提升系统的可伸缩性。(用这个Web API能够很容易地实现REST化的HTTP服务,目前在三种主流的Web服务实现方案中,由于REST模式的Web服务与复杂的SOAP和XML-RPC对比来说明显的更加简洁,愈来愈多的web服务开始采用REST风格设计和实现。例如,Amazon.com提供接近REST风格的Web服务进行图书查找;雅虎提供的Web服务也是REST风格的。)web
ASP.NET Web API是一个用来在.NET框架上创建Web API的框架。网络
A model is an object that represents the data in your application.架构
A controller is an object that handles HTTP requestst. app
Note If you have worked with ASP.NET MVC, then you are already familiar with controllers. They work similarly in Web API, but controllers in Web API derive from the ApiController class instead of Controller class. The first major difference you will notice is that actions on Web API controllers do not return views, they return data.框架