Forum Discussion

wmertens's avatar
wmertens
Expert
13 years ago
Solved

How to get a hierarchical view of all boards and categories?

Hi all,

 

I'm new here and I couldn't find an answer by searching so here goes:

 

For metrics retrieval I want to create a tree object that has all the boards, tkbs etc. Basically, what you would see if you expand all the all the subtrees in a community browser like at dev nation.

 

Using the REST API it looks like I will have to walk the entire tree, starting from the community info at restapi/vc/ and then for each category getting details on the category so I get the subcategories.

 

Is this correct? Seems sub-optimal to me.

 

There is also the restapi/vc/categories/nested call but that just gives you a flat list and the category details do not include their ancestor category id.

 

Any chance of changing the API so any call to nested includes the ancestor ids as well?

3 Replies

  • wmertens's avatar
    wmertens
    Expert
    13 years ago
    Thanks for that, I'll take a look.

    What about changing the API to include ancestor ids?
  • DougS's avatar
    DougS
    Khoros Alumni (Retired)
    13 years ago

    We can't change the existing call's response, because we have a few customers that are relying on the current response output staying the same.  This will most likely have to wait for a second version of this call.