What is REST

来源:互联网 发布:王者荣耀知乎 编辑:程序博客网 时间:2024/05/29 17:41

REST -- REpresentational State Transfer

表现层状态转移

A good explanation:

URL定位资源,用HTTP动词(GET,POST,DELETE,DETC)描述操作。


“资源”是REST架构或者说整个网络处理的核心

Representational:某种表现形式,比如用JSON,XML,JPEG等;

State Transfer:状态变化。通过HTTP动词实现。

论文地址:http://www.ics.uci.edu/~fielding/pubs/dissertation/top.htm


-- Server --
推荐: Spring MVC 或者 Jersey 或者 Play Framework
教程:
Getting Started · Building a RESTful Web Service

https://spring.io/guides/gs/rest-service/

-- Android --
推荐: RetroFit ( Retrofit ) 或者 Volley (mcxiaoke/android-volley · GitHub )
教程:
Retrofit โ€” Getting Started and Create an Android Client

https://futurestud.io/tutorials/retrofit-getting-started-and-android-client
快速Android开发系列网络篇之Retrofit

http://www.cnblogs.com/angeldevil/p/3757335.html

-- iOS --
推荐:RestKit ( RestKit/RestKit · GitHub )

https://github.com/RestKit/RestKit
教程:
Developing RESTful iOS Apps with RestKit

https://code.tutsplus.com/tutorials/developing-restful-ios-apps-with-restkit--mobile-4524

-- Web --
推荐随便搞!可以用重量级的AngularJS,也可以用轻量级 Backbone + jQuery 等。
教程:blog.javachen.com/2015/


rest协议是面向资源的

soap是面向服务的


原创粉丝点击