ASP.NET MVC 4网页API和REST服务的经典之差 [英] Difference between ASP.NET MVC 4 Web Api and REST classic services
问题描述
我看到 ASP.Net MVC4的WebAPI
公开服务为休息的。
I saw that ASP.Net MVC4 WebApi
exposes services as a Rest ones.
然而,究竟什么是正常的之间的差异恢复
和 ASP.Net MVC4的WebAPI
?
But what is actually the difference between normal Rest
and ASP.Net MVC4 WebApi
?
推荐答案
我不知道你所说的正常休息
的意思。
I'm not sure what you mean by normal Rest
.
REST 是一个范例。
HTTP是遵循该模式的协议。
HTTP is a protocol that follows that paradigm.
的ASP.NET Web API允许开发人员编写能够通过HTTP访问ASP.NET应用程序和坚持REST范例。虽然你可以创建一个没有网络API一个REST API,网络API提供了大量的功能,将免去很多在ASP.NET创建一个真正的RESTful API带来的痛苦的。
ASP.NET Web API allows developers to write ASP.NET applications that can be accessed via HTTP and adhere to the REST paradigm. While you could create a REST API without Web API, Web API provides a ton of features that will remove a lot of the pain associated with creating a truly RESTful API in ASP.NET.
apigee 有许多很好的资源,REST API最佳practicies。
apigee has many great resources for REST API best practicies.
这篇关于ASP.NET MVC 4网页API和REST服务的经典之差的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!