REST

理解RESTful架构

  • Representational State Transfer (REST) is a achitechtural style

  • 3 fundamental aspects of REST design pattern: client, server, resource

  • 如果一个架构符合REST原则,就称它为RESTful架构。

  • 总结一下什么是RESTful架构:

(1)每一个URI代表一种资源; -----> e.g. URLs

(2)客户端和服务器之间,传递这种资源的某种表现层; -----> e.g. data type

(3)客户端通过四个HTTP动词,对服务器端资源进行操作,实现"表现层状态转化"。 -----> method: GET/POST/PUT/DELETE

results matching ""

    No results matching ""