From 65d64ee0b2402002480dd64d5e6c97fa1092c9c3 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Tue, 14 Mar 2017 22:41:08 +0000 Subject: [PATCH] Updated Design: Library Sidebar (markdown) --- Design:-Library-Sidebar.md | 39 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) 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", + } + ] + } + ] + } + ] +} +``` + + + ---