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.
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.
This will decrease number of API calls and increase app speed dramatically.
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.
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':