is there a specification for RESTful APIs

时间:2018-03-23 00:14:28

标签: rest specifications

I have seen many ways/guides/tutrials implementing RESTful web services, I have even implemented many myself. I understand the basic principles that a restful service should follow because I have inferred them from many different sources, articles, other web services, etc.

Now I am studying the protocols and standards that govern the web in more detail , reading specs, RFCs, etc

Is there a document, RFC or specification that is widely accepted that explains what a RESTful web service should be compliant with?.

1 个答案:

答案 0 :(得分:5)

2008年,Leonard Richardson introduced a maturity model基于Web堆栈中的三项主要技术提供Web服务:

  • URI
  • HTTP
  • 超媒体

URI

URI由RFC 3986定义。

HTTP

HTTP目前由

定义

超媒体

这很难。无处不在的超媒体媒体类型仍然是HTML,您可以从HTML 5.2开始。

许多API尝试使用JSON,但JSON没有定义链接;所以如果你想要走这条路,你需要找到一个定义链接的JSON变种。

Kevin Sookocheff wrote对一些选项的概述