RESTful

59 阅读2分钟

Representational State Transfer (REST) is a style of architecture based on a set of principles that describe how networked resources are defined and addressed. These principles were first described in 2000 by Roy Fielding as part of his doctoral dissertation. REST is an alternative to SOAP and JavaScript Object Notation (JSON).

是一种基于描述如何定义和处理网络资源的一系列原则的架构 REST。这些原则在2000年 Roy Fielding 第一次描述,作为他的博士论文的一部分。REST 是 SOAP 和 JSON 的替代品(JSON)。

It is important to note that REST is a style of software architecture as opposed to a set of standards. As a result, such applications or architectures are sometimes referred to as RESTful or REST-style applications or architectures. REST has proved to be a popular choice for implementing Web Services. For example, the books suggested at the bottom of many of these article pages are dynamically generated, in part, using a REST architecture. It is one of the options for Amazon Web Services

值得注意的是,REST 是一种软件架构风格,而不是一组标准。因此,这样的应用程序或架构有时被称为 RESTful 或 rest 风格的应用程序或架构。REST 已经被证明是实现 Web 服务的流行选择。例如,许多这些文章页面底部建议的书籍部分是使用 REST 架构动态生成的。这是亚马逊网络服务的选项之一

An application or architecture considered RESTful or REST-style is characterized by:

一个被认为是 RESTful 或 rest 风格的应用程序或体系结构是拥有属性的:

State and functionality are divided into distributed resources 状态和功能被划分为分布式资源

Every resource is uniquely addressable using a uniform and minimal set of commands (typically using HTTP commands of GET, POST, PUT, or DELETE over the Internet) 每个资源都可以使用统一的和最小的命令集惟一地寻址(通常使用 Internet 上的 GET、 POST、 PUT 或 DELETE 的 HTTP 命令)

The protocol is client/server, stateless, layered, and supports caching 该协议是客户机/服务器协议,无状态,分层,并支持缓存

www.ics.uci.edu/~fielding/p…