diff --git a/Design:-Library-Sidebar.md b/Design:-Library-Sidebar.md index 5a8826e..c9199c9 100644 --- a/Design:-Library-Sidebar.md +++ b/Design:-Library-Sidebar.md @@ -117,4 +117,43 @@ The format of the listing response should be made clearer. If an entry has no `children` property, it is a file. Otherwise it is a directory. +The previous example becomes: + +``` +{ + "path": "/", + "name": "/", + "children": [ + { + "path": "/one", + "name": "one", + "children": [ + { + "path": "/one/example1", + "name": "example1" + } + ] + }, + { + "path": "/two", + "name": "two", + "children": [ + { + "path": "/two/three", + "name": "three", + "children": [ + { + "path": "/two/three/example2", + "name": "example2", + } + ] + } + ] + } + ] +} +``` + + + ---