Forum Discussion

Inactive User's avatar
Inactive User
12 years ago

Getting all featured articles within subcategories

Need some Lithium wisdom.

 

I need to use the RestAPI or an endpoint to get the most recent featured articles from within four separate blogs located in separated categories underneath a parent category. What is the best way to do this? I'm stumped as to a good solution. 

 

Thanks in advance.

2 Replies

  • AdamN's avatar
    AdamN
    Khoros Oracle
    12 years ago

    Are those 4 blogs the only blogs in the parent category? If so, the Category class has a "/threads/style/style/featured" method which might work for. For example:

     

    /restapi/vc/categories/id/support/threads/style/blog/featured

     

    If there are additional blogs that you don't want to include, you may have to either add some processing logic to filter those out of your results, or make separate REST API calls to those blogs and combine the results.

     

     

  • Inactive User's avatar
    Inactive User
    12 years ago

    Yeah, didn't find a clean way to exclude a blog down the level so we went with a different approach. Thanks for the help though.