Rest API call issues for Labels in Forums
Hi Lithium Support,
I'm currently working on customized page to show forum threads filtered by a Label but I've come across a strange issue that the call returns the full list of threads in a topic regardless of what label text is passed. Take for example a Rest Call made to this Lithosphere topic:
Which returns the same threads if I use the following call:
http://lithosphere.lithium.com/restapi/vc/boards/id/lisupport/threads/for/labels/text/recent/
Whereas similar API calls for category of type Blogs and Ideas work ok. For example:
Returns at least 3 threads
As expected, this doesn't return any threads.
Is there a special REST parameter that Forums require to be filtered by a Label?
You are correct, there is a bug with filtering forum threads based on labels. This is due to a lot of special handling of search based legacy code.
However, are you sure that you need the entire thread? It sounds like you are making a list of the topics (root messages) with specific labels. If this is the case, you can filter boards/topics on labels (notice the filters in the blue box at the top).
Let me know if you need a list which includes the entire thread instead of just a list of root messages and we will continue to look for another way.