What is the complete list of expected JSON responses for DS.RESTAdapter?

拜拜、爱过 提交于 2019-11-28 02:45:41
Mike Grassotti

Instead of stabbing in the dark, have a look at rest-adapter-test

For example, to fill in your question on response data for bulk updates, L738 describes the expected response data:

ajaxHash.success({ people: [
  { id: 1, name: "Brohuda Brokatz" },
  { id: 2, name: "Brocarl Brolerche" }
]});

Currently look for phrases ajaxResponse( in rest-adapter-test.js source nested in test("create - a payload with a new ID and data applies the updates" look alike blocks to read required response of server.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!