API endpoint to return ALL objects (recursively) but simplified to create browser tree
I am using the jstree library in my application to create a full browser tree of a user's BOX resources. Please create an endpoint to return ALL objects (recursive) available to an authenticated user inside one root folder . These objects would only require the object ID, TYPE, NAME, VERSION and PARENT(parent-id as string instead of parent object). The jstree lib can take this data and create an entire file browsing tree and then users would call up more information when they click on an object. This would greatly reduce the number of API calls to your server and possibly reduce memory usage on your end. My application needs to create this full browser tree anyway to check the status of synced folders and this currently requires multiple consecutive API calls.
![](https://secure.gravatar.com/avatar/85de284b69a885b58369bb0dccc871dc?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
-
Anonymous commented
We are using C# Box.V2.Core 3.25.0 SDK, and we would also benefit from a single endpoint to retrieve the entire folder structure.
-
John Nickell commented
My use/need is for powershell Box CLI, but we could also benefit from a single endpoint to get all items within a folder recursively. Trying to build the logic and wait for multiple API calls to return makes this very tiresome.
In our use case we are trying to get count of all files in a directory. At present we have to limit to just the total overall file count. I would envision this API endpoint enabling us to see count of files _by_type_ as well. -
Anonymous commented
This will decrease number of API calls and increase app speed dramatically.
-
Anonymous commented
I should add, version could be a string with the version number instead of the version object. Also, when I said 'all resources' I just meant all resources in a single work space. The idea is for BOX users to store all files relating to a single construction project in one works space and allow my app to check for new drawing revisions.
-
Anonymous commented
See the page below for info on using jstree to create a file browsing tree using a one dimensional array. Go to 'Using the alternative JSON format':