在web上使用REST

在web上使用REST,rest,Rest,在WEB中使用时,REST是什么 文档太多了,但这仅仅是一种使用现有html协议的简单态度,可能会取代web服务 是这样的吗 比如贝宝 仅使用来自使用http协议的特定服务器的方法:https:// 在服务器端使用get/post方法的值 实体: 客户机-每个可以访问服务器A(针对特定服务)的客户机 服务器A—具有服务器访问权限(使用访问密钥,如PAYPAL支持)的服务器(供客户端使用) 服务器B—具有API的服务器,其中包含一些返回到客户端的方法 步骤: 1. User ask from se

在WEB中使用时,REST是什么

文档太多了,但这仅仅是一种使用现有html协议的简单态度,可能会取代web服务

是这样的吗

比如贝宝

仅使用来自使用http协议的特定服务器的方法:https://

在服务器端使用get/post方法的值

实体:

客户机-每个可以访问服务器A(针对特定服务)的客户机

服务器A—具有服务器访问权限(使用访问密钥,如PAYPAL支持)的服务器(供客户端使用)

服务器B—具有API的服务器,其中包含一些返回到客户端的方法

步骤:

1. User ask from server A (server A uses the API) for a token.
2. Server A open a session with server B and send request for token (with the access key provided) to server B
3. Server B may reject or accept the request and send back the token to server A.
4. Server A may keep the token in session variable and send the token to the client.
5. Client use the token
6. Client send requests to server A, that send requests to server B with the token, keeping the same session.
以上是正确的吗

这就是休息的概念吗

如果没有-需要一些指导,请


谢谢:)

我认为代币的概念超出了其他概念

Rest(Representational state transfer)与您使用http方法表示所需操作的方式有更多的关系,例如使用get转到/users应该返回用户数组,然后在/users/1234中发布应该创建id为1234的用户,或者在/users/1234中删除id为1234的用户,等等

它是一个http方法有意义的体系结构

无论如何,还有更多的细节,我会继续阅读下面的内容