mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Updated Design: Library Sidebar (markdown)
parent
63f94c9fc5
commit
87c021fc31
@ -97,13 +97,13 @@ This reveals two different approaches of what gets returned:
|
|||||||
This suggests the desired consistent approach is:
|
This suggests the desired consistent approach is:
|
||||||
|
|
||||||
- `/library/[type]` : return a full listing
|
- `/library/[type]` : return a full listing
|
||||||
- `/library/[type]/path` : if resolves to an entry, return the entry. Otherwise return the full listing rooted at this point
|
- `/library/[type]/path` : if it resolves to an entry, return the entry. Otherwise return the full listing rooted at this point
|
||||||
|
|
||||||
The format of the listing response should be made clearer.
|
The format of the listing response should be made clearer.
|
||||||
|
|
||||||
```
|
```
|
||||||
{
|
{
|
||||||
"path": "the full path at this level represents",
|
"path": "the full path this level represents",
|
||||||
"name": "the name of this entity"
|
"name": "the name of this entity"
|
||||||
"children": [
|
"children": [
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user