Vincent Massol wrote:
Other question:
Why use the plural when retrieving a single instance.
For example: /spaces --> All spaces /space/{space} --> One space
Ah just saw you changed that but not everywhere. Like classes/{class} should be class/{class} And pages/{page} should be page/{page} no?
Actually this was a leftover of my Ruby On Rails experience... But yes, I think that this can be worked out without any problem :)
Re nested spaces the best is probably to define a delimiter other than "/"
Something like: /space/this::is::nested/page/WebHome
Of course this would mean that "::" is not allowed in space names. BTW this would also means that "/" is not allowed in space names.
This is an interesting solution. In fact, I don't know if Restlet supports some kind of regular expression extension on URI templates. I mean, I am not sure if we can define a "/{space}+/pages/{page}" URI template as a route for catching nested spaces... To be investigated. Thanks -Fabio