Am Mittwoch, den 09.01.2008, 22:01 +0100 schrieb Tobias Bocanegra:
> > Why not:
> >
> >     /stuff.json?depth=1
> >
> > It's not like we need to use the URI mapping for everything.
> because this breaks caching.
> 
> however, i think there are actually 2 use cases. the first is that you
> need the deep serialization of a tree, e.g. a page, or an exploded
> xml, or a dialog node structure description.... in this case you
> always want a depth=infinity. the other one is the 'browsing' use case
> where you only need the node and it's properties (and the names of the
> childnodes!). so this is a special case anyways. this would be like
> depth=0.5 :-)

This is an interesting proposal. Just a quick question, though: How
would you represent "child node names" here to distinguish them from
properties ? As empty objects ?

Regards
Felix

Reply via email to