Forum Discussion

nlouie's avatar
nlouie
Adept
12 years ago

REST API: How to determine which board a post belongs to

Hey guys!

 

I'm using a RESTAPI call to extract the most recent forum posts on my community (community.futureshop.ca)

 

http://community.futureshop.ca/restapi/vc/posts/style/forum/recent

 

The only issue is that I would like is to find out which board each of these recent posts belongs to.
 I only have this information:

 

<board type="board" href="/boards/id/computerlaptop"/>

 

but doesn't provide the full board name "Computer & Laptops"

 

Does this make sense? hopefully I can provide more insight if needed. Thanks!

 

Nick

  • PaoloT's avatar
    PaoloT
    Lithium Alumni (Retired)

    Hi nlouie,

     

    I think in this case you need to fetch the additional information by making another rest call to the board (using the href) and getting the information from there. 

     

    The only consideration to make around this approach is to evalutate the number of posts (i.e. additional calls) you will have to look up for - and wheter this component is on a page that recieves a lot of traffic etc ...

     

    Does this help?

     

    Cheers