wpigoury
11 years agoMentor
Latest message in REST API call topics streams
Hi,
I'm using the streams to build a component and a custom page which display the latest active topics sorted by descending last message's post date.
The call looks like this :
/topics/streams/key/by-latest-post/after?page_size=5&restapi.response_style=view
This request is meant to find the latest activity and in my opinion it would be logical to be able to link directly to the latest message and not to the first message of the topic.
But the only way to go directly to the end of the discussion is to make another call for each item using the thread href.
Like this :
/threads/id/xxxxx/messages/latest
This information should be included in the response of the streams call don't you think?