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

后端 未结 2 592
时光说笑
时光说笑 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" }
    ]});
    

提交回复
热议问题