REST并不是一种协议,而是一种”思路“。REST起源于Roy Fielding在2000年提交的博士论文”Architectural Styles and Design of Network-based Software Architectures“。
原文PDF:https://ics.uci.edu/~fielding/pubs/dissertation/fielding_dissertation.pdf
原文HTML:
https://ics.uci.edu/~fielding/pubs/dissertation/top.htm
HTML版的看着挺难受的,PDF版的翻译又挺麻烦的。找个时间翻译翻译。
REST的四条原则
①用HTTP实现无状态性
②用URI实现地址的可见性
③用HTTP方法实现统一的接口
④用XML、JSON实现资源间的连通性
REST:Representational State Transfer。中文叫“表述性状态转移”...还不如简称REST。