Fork me on GitHub

理解REST, 以及RESTful

REST

全称 : Resource Representational State Transfer 翻译 : 资源在网络中以某种表现形式进行状态转移 理解 : 选择通过使用http协议和uri, 利用client/server model 对资源进行CRUD 通俗 : 看url就知道要干什么,看http methond 就知道要干什么,看http status code 就知道请求结果 自我理解: 以往对url的定义是: 打开电脑 /start/computer 关闭电脑 /stop/computer 以RESTful风格来写的话就是: 打开电脑 /computer, http method :GET 关闭电脑 /computer ,http method : PUT

Thanks for the support