Hi,
We are using boards (forums?) and when you post a topic you need to select the hierarchy before you submit.
Now I need to know what is the REST url to retrieve this entire board/forum hierarchy?
For e.g..,
Welcome
|________ Announcement
Discussion
|_________ How to use
|_________ Products
|_________ Service
Misc
|__________ misc
Thanks.
I'm not sure how these calls will match with the customization you have in place. The Lithium application does not normally require you to place the forum hierarchy in the editor before you post. That is a customization to your instance of the application.
But with that said, this is how you get the category list for a community:
http://lithosphere.lithium.com/lithium/restapi/vc/
You will note that one of the categories is called "forums" (and the others are "blogs" and "Ideas").
To get the list of boards in a cateogory, in this example I will get the boards from the "forum" category:
http://lithosphere.lithium.com/lithium/restapi/vc/
I hope this info helps.
ok, Thanks.
It works after I make the following 2 REST calls.
URL1
--------
https://domain/restapi/vc/categories
Retreives the "main" categories. In this eg., Welcome, Discussion, Misc
URL2
--------
https://domain/restapi/vc/categories/id/Discussion
Retrives the child under the "main" category. In this e.g., Under "Discussion", I got "How to use", "Products", "Service"
Everything good. But is that possible to get these in a single REST call?
Thanks.
Try this one - http://lithosphere.lithium.com/restapi/vc/boards/n
Or more specifically (because I love your community and I want to promote it here):
https://www.paypal-community.com/restapi/vc/boards
If these work, throw an Accepted Solution my way. ![]()
Thanks for sharing the information.
and thanks for promoting our website ![]()
The URL you have given gets all the 2nd level board hierarchies without 1st level hierarchy. Is there a way I can get both 1st level & 2nd level in a single request?
Thanks again.
I went through all the calls. It does not look like you can get the hierarchy in one call.
Probably not the answer you want, but hopefully you received a few other good answers in this thread.