From a797829c8d6e101d1c8ff28502c5133fdeefc25e Mon Sep 17 00:00:00 2001 From: Jeremy Ashkenas Date: Thu, 14 Oct 2010 11:48:03 -0400 Subject: [PATCH] a note about namespacing JSON requests. --- index.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 0e71dc9e..1c52de2c 100644 --- a/index.html +++ b/index.html @@ -1017,7 +1017,10 @@ var Notes = Backbone.Collection.extend({

The server handler for fetch requests should return a JSON list of models, namespaced under "models": {"models": [...]} — - additional information can be returned with the response under different keys. + instead of returning the + array directly, we ask you to namespace your models like this by default, + so that it's possible to send down out-of-band information + for things like pagination or error states.