Skip to main content
 首页 » 编程设计

REST api vs REST Webservice vs RESTFul Web 服务

2024年11月01日129powertoolsteam

REST(Representational State Transfer)是一种架构模式/风格。
基于 REST 的服务称为 RESTful 服务。
什么是休息 API? Rest API、Rest Web 服务和 Restfull Web 服务之间有什么区别吗?

请您参考如下方法:

RESTful Web 服务是 REST API(应用程序可编程接口(interface))或 REST 规范的实现。在这种情况下,您还将使用您创建的端点创建一个 API。从某种意义上说,它们实际上是同一件事,只是两个可以互换的术语根据您的问题 .措辞可能有点令人困惑,但 tl;dr; RESTful Web Service == REST API == REST Web Service 对于这种情况

Outside of the context of the OP's question an API is not the same as a Web Service. An API can mean any interface or library used to interact with anything from code. This can be a smart dishwasher API or Web Sockets or cell phone SMS or even jQuery. In that same sense a Web Service is just a kind of API that provides information over the web.