什么是休息?有点糊涂 [英] What is REST? Slightly confused

查看:30
本文介绍了什么是休息?有点糊涂的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我假设 REST 是一种网络服务,但我的想法似乎是错误的 - 那么,什么是 REST?

I was under the assumption that REST was a web service but it seems that I am incorrect in thinking this - so, what is REST?

我已经通读了维基百科,但仍然无法完全理解它.为什么很多地方都将 API 称为 REST API?

I've read through Wikipedia but still cant quite wrap my head around it. Why to do many places refer to API's as REST API's?

推荐答案

REST 不是特定的 Web 服务,而是用于管理状态信息的设计概念(架构).这方面的开创性论文是 Roy Thomas Fielding 的论文(2000 年),架构风格和基于网络的软件架构的设计"(可从加州大学欧文分校在线获取).

REST is not a specific web service but a design concept (architecture) for managing state information. The seminal paper on this was Roy Thomas Fielding's dissertation (2000), "Architectural Styles and the Design of Network-based Software Architectures" (available online from the University of California, Irvine).

首先阅读 Ryan Tomayko 的帖子我如何向我的妻子解释 REST;这是一个很好的起点.然后阅读菲尔丁的实际论文.不高级,也不长(六章180页)!(我知道你们学校的孩子喜欢短篇).

First read Ryan Tomayko's post How I explained REST to my wife; it's a great starting point. Then read Fielding's actual dissertation. It's not that advanced, nor is it long (six chapters, 180 pages)! (I know you kids in school like it short).

我觉得试图解释 REST 毫无意义.它有很多概念,如可扩展性、可见性(无状态)等,读者需要掌握,而理解这些的最佳来源是实际论文.它不仅仅是 POST/GET 等.

I feel it's pointless to try to explain REST. It has so many concepts like scalability, visibility (stateless) etc. that the reader needs to grasp, and the best source for understanding those are the actual dissertation. It's much more than POST/GET etc.

这篇关于什么是休息?有点糊涂的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆