Growing Successful Communities

0
Occasional Contributor
qqura1

REST URL to retrieve the board hierarchy

10-28-2009 01:42 PM

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.

Lithium Guru
JakeR

Re: REST URL to retrieve the board hierarchy

11-02-2009 01:25 PM

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/categories

 

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/categories/id/forums/boards

 

I hope this info helps.

*** If you find my post helpful, and it answers your question, please mark it as an "Accepted Solution"***
0
Occasional Contributor
qqura1

Re: REST URL to retrieve the board hierarchy

11-04-2009 07:07 AM

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.

0
Lithium Guru
JakeR

Re: REST URL to retrieve the board hierarchy

11-04-2009 06:05 PM

Try this one - http://lithosphere.lithium.com/restapi/vc/boards/nested

 

Or more specifically (because I love your community and I want to promote it here):

 

https://www.paypal-community.com/restapi/vc/boards/nested

 

If these work, throw an Accepted Solution my way. :smileyhappy:

*** If you find my post helpful, and it answers your question, please mark it as an "Accepted Solution"***
0
Occasional Contributor
qqura1

Re: REST URL to retrieve the board hierarchy

11-06-2009 01:55 PM

Thanks for sharing the information.

 

and thanks for promoting our website :smileywink:

 

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.

 

 

0
Lithium Guru
JakeR

Re: REST URL to retrieve the board hierarchy

11-11-2009 01:01 AM

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.

 

*** If you find my post helpful, and it answers your question, please mark it as an "Accepted Solution"***