From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/zh-cn/glossary/rest/index.html | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 files/zh-cn/glossary/rest/index.html (limited to 'files/zh-cn/glossary/rest') diff --git a/files/zh-cn/glossary/rest/index.html b/files/zh-cn/glossary/rest/index.html new file mode 100644 index 0000000000..6be2db2d84 --- /dev/null +++ b/files/zh-cn/glossary/rest/index.html @@ -0,0 +1,32 @@ +--- +title: REST +slug: Glossary/REST +tags: + - HTTP + - Rest + - 初学者 + - 术语 + - 架构 +translation_of: Glossary/REST +--- +

具象状态传输(REST,Representational State Transfer) 是一组实现效率、可读性、还有可拓展分散式系统的软件架构设计规范。如果一个系统能坚守这些规范,那么它就是 RESTful。

+ +

REST 的基本概念是资源(resource),例如文件能通过明确和标准的操作与格式,转换其状态与超文本的关系。通常在 {{Glossary("API","API's")}} 或服务能直接修改文件的类型,而非触发其他行为时,它们就称自己为 RESTful。

+ +

由于万维网 {{glossary("World Wide Web","Web")}} 背后的 {{Glossary("HTTP")}} 协议也能传输文件和超文本链接,同时又充当了标准,简易的 HTTP API 虽然有时不一定遵守所有的 RESTful 规范,但它们还是会被称为 RESTful API、RESTful 服务,或者直接叫 REST 服务。初学者可以先假设 REST API 代表一个能通过标准 web 库和工具调用的 HTTP 服务。

+ +

了解更多

+ +

搞懂它

+ + + +

基础知识

+ + -- cgit v1.2.3-54-g00ecf