首页 > 其他 > 详细

Understanding REST

时间:2016-03-19 16:11:42      阅读:120      评论:0      收藏:0      [点我收藏+]

REST is an architectual style for designing distributed systems. It is not a standard but a set of constraints, such as being stateless, having a client/server relationship,

and a uniform interface. REST is not strictly related to HTTP, but is most commonly associated with it.

 

Principles of REST

Resources: Expose easily understood directory structure URIs.

Representations: Transfer JSON or XML to represent data objects and attributes.

Messages: Use HTTP methods explicitly (for example, GET, POST, PUT and DELETE)

Stateless: Interaction  store no cliend contexton the server between requests. State dependencies limite and restrict scalability. The client holds session state.

Understanding REST

原文:http://www.cnblogs.com/chuiyuan/p/5295151.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!