You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by David Nuescheler <da...@day.com> on 2009/04/28 13:46:41 UTC

[Chemistry] URL Layout

Hi all,

currently the URL layout of chemistry is exposed in a fashion that
prefixes the operation (eg. "/children/<folder-id>") and by coincidence
also permits the use of slashes in the folder & document ids.

I would like to propose a more natural mapping that also reflects a nicer
mapping for repositories that choose to expose a hierarchy and allows
for web infrastructure that make use of the hierarchical nature of the the
URL to apply things like access control.

my recommendation would be to go with something that would use the
folder & document id as the path and then identify the operation with
a suffix. (eg. /<folder-id>.children.xml)

so this would mean that instead of ...

/children/my/deep/folder/id
/children/9c56d0fcf93175d70e1c9b9d188167cf
/type/my/deep/folder/id
/type/9c56d0fcf93175d70e1c9b9d188167cf

... the URLs would be ...

/my/deep/folder.children.xml
/my/deep/folder.type.xml
/9c56d0fcf93175d70e1c9b9d188167cf.children.xml
/9c56d0fcf93175d70e1c9b9d188167cf.type.xml

WDYT?

regards,
david

-- 
Visit: http://dev.day.com/