+1

Sent via BlackBerry from T-Mobile

-----Original Message-----
From: Felix Meschberger <[EMAIL PROTECTED]>

Date: Thu, 10 Jan 2008 09:52:33 
To:[email protected]
Subject: Re: json export: recursive by default


+1

Regards
Felix

Am Donnerstag, den 10.01.2008, 09:46 +0100 schrieb Tobias Bocanegra:
> > #1 - i want all the properties of a node in one response
> > #2 - i want all the childnodes of a node and their properties in one 
> > response
> > #3 - i want all the childnodes and properties at an infinite or
> > arbitrary level in
> > one response
> >
> > i would argue that #1 & #2 make up 90% of all the requests.
> > #1 & #2 are not a big deal with respect to serverside caching since
> > they are usually very cheap.
> > so i would argue that with respect to caching we should probably take
> > care of the expensive #3...
> >
> > personally, with ujax in mind, i certainly would argue that the default
> > behavior is important for a method like ujax.getContent("/mynode")
> > should be to just get the proprties of a node in a shallow manner.
> > which to me hints that this should probably also be the the default
> > behaviour of "/mynode.json" (== "/mynode.0.json").
> > to align with the webdav propfind "Depth" header i would recommend to go 
> > with
> > "/mynode.infinity.json"
> 
> you probably right. the 0.5 case might not be relevant. since even for
> browsing, you may need to node type of a child node. e.g. for drawing
> the correct icon. so i suggest to have:
> 
> /mynode.0.json -> returns the node and its properties
> /mynode.1.json -> returns the node, it properties and the child nodes
> and their properties
> ...
> /mynode.infinity.json -> returns the entire subtree.
> 
> and i suggest to treat the '0' case as default.
> 
> regards, toby

Reply via email to