ExtJS REST请求/响应处理的详细文档? [英] Detailed documentation for ExtJS REST request / response handling?

查看:122
本文介绍了ExtJS REST请求/响应处理的详细文档?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在服务器响应/请求中ExtJS 4 REST类(Reader,Writer,Proxy)所期望的内容是否有详细的文档?

Is there detailed documentation anywhere on what the ExtJS 4 REST classes (Reader, Writer, Proxy) expect from a server response / request?

例如,如果执行一个POST,ExtJS为了获得新创建的资源的ID而期望什么。

For instance, if perform a POST, what does ExtJS expect back in order to get an id for the newly create resource.

ExtJS中的文档似乎非常稳固,但我还没有看到这些具体细节布置在任何地方。也许这是一个断开连接,因为我是REST的新人,而其他所有人都将这些细节视为理所当然的,但是我正在做很多跟踪和错误,只是为了让基本的工作,我会感谢一些指导。

The documentation around ExtJS seems really solid, but I haven't seen these particular details laid out anywhere. Maybe this is a disconnect because I am new to REST and everyone else takes these details for granted, but I am doing a lot of trail and error just to get basic things to work and I would appreciate some guidance.

推荐答案

除了源代码中的内容之外,我找不到有关Rest请求和响应行为的任何文档。

I couldn't find any documentation about the Rest request and response behaviors besides those inlined in the source code.

除了Rest代理类之外,我建议您查看Json读写器类。假设你使用Json,这些类实际上控制了请求的创建和响应的读取。以下是4.1版本的链接。

I recommend looking at the Json reader and writer classes in addition to the Rest proxy classes. Assuming you are using Json, these classes actually control the creation of the request and reading of the response. Here are the links for the 4.1 versions of the classes.

  • Ext.data.proxy.Rest (src)
  • Ext.data.reader.Json (src)
  • Ext.data.writer.Json (src)

这篇关于ExtJS REST请求/响应处理的详细文档?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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