码迷,mamicode.com
首页 > 其他好文 > 详细

REST架构风格

时间:2018-12-11 11:22:19      阅读:171      评论:0      收藏:0      [点我收藏+]

标签:strong   infoq   连通性   str   state   转化   连通   ted   通过   

  REST 是属于 WEB 自身的一种架构风格,是在 HTTP 1.1 规范下实现的。Representational State Transfer 全称翻译为表现层状态转化。Resource:资源。比如 newsfeed;Representational:表现形式,比如用JSON,富文本等;State Transfer:状态变化。通过HTTP 动作实现。
  理解 REST ,要明白五个关键要素:
  资源(Resource)
  资源的表述(Representation)
  状态转移(State Transfer)
  统一接口(Uniform Interface)
  超文本驱动(Hypertext Driven)
  6 个主要特性:
  面向资源(Resource Oriented)
  可寻址(Addressability)
  连通性(Connectedness)
  无状态(Statelessness)
  统一接口(Uniform Interface)
  超文本驱动(Hypertext Driven)

 

详情链接:

https://www.infoq.cn/article/understanding-restful-style

REST架构风格

标签:strong   infoq   连通性   str   state   转化   连通   ted   通过   

原文地址:https://www.cnblogs.com/jsersudo/p/10100394.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!