I am developing a blog-like interface for a private Discourse deployment based on the JSON API from Discourse. The idea is simple: the owner of the Discourse is the only one that can post questions in a certain category. This category will be used as a base for the posts in the blog.
The problem is, I can’t figure out how to get the topics sorted by
/latest.json is almost there, however it sorts by
last_posted_at, so if I made a blog based on
latest.json the top posts would be the post last commented by an user, not the more traditional most recent created post.
Btw, the Discourse API documentation seems to be really outdated, since I discovered for example that passing
/latest.json?page=1 allow me to see the next 30 topics (each call from the API gives at most 30 topics and this does not seem to be documented anywhere).