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

后端 未结 2 588
时光说笑
时光说笑 2020-12-07 07:48

I am attempting to write a custom express.js based server for an Ember.js app. I am getting along fairly well but I\'m constantly getting stuck trying to guess what JSON res

相关标签:
2条回答
  • 2020-12-07 08:27

    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" }
    ]});
    
    0 讨论(0)
  • 2020-12-07 08:54

    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.

    0 讨论(0)
提交回复
热议问题