Representational State 在 REST 中是什么意思? [英] What does Representational State mean in REST?

查看:37
本文介绍了Representational State 在 REST 中是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在网上阅读以了解两个词的确切含义:

I have been reading all over the net to get the exact meaning of two words:

代表状态

我有一个疑问.我误解了这些条款.我想澄清与某人的理解如何对此有好主意.

I have a doubt. I am misunderstanding these terms. i want to clarify understanding with some one how has good idea about this.

我的理解是,服务器中有一个资源.SO Rest 意味着,将此资源的某些表示状态传输给客户端.

My understanding is that, there is a resource located in the server. SO Rest means that, transferring some representational state of this resource to a client.

如果服务器有一个资源 x,那么如果我们可以制作资源 x 的表征状态 y,并通过网络传输它就是 REST 的意思,这是正确的还是它的正确含义是什么.有人可以解释我这一点.

if server has a resource x, then if we can make representational state y of resource x, and transferring it over the web is what REST means, is this correct or what is the correct meaning of it. could some one explain me this.

推荐答案

Representational State Transfer 是指转移表示".您正在使用资源的表示"将服务器上的资源状态转换为客户端上的应用程序状态.

Representational State Transfer refers to transferring "representations". You are using a "representation" of a resource to transfer resource state which lives on the server into application state on the client.

这篇关于Representational State 在 REST 中是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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