appdotnet / api-spec

App.net API Documentation is on the web at https://developers.app.net. Source for these docs is in the new-docs branch here. Please use the issue tracker and submit pull requests! Help us build the real-time social service where users and developers come first, not advertisers.
https://developers.app.net
950 stars 98 forks source link

Way to do ad-hoc query to get direct replies #171

Closed mattflaschen closed 11 years ago

mattflaschen commented 12 years ago

As now documented, /replies returns the whole thread. I would like a way to get a list of direct replies to a given post ID.

Among many other things, this will help prevent cheating/disruption in correspondence chess. If a move is a reply to the prior move, this will make it easier to detect and ignore double moves.

Note, #135 would allow this, but it's requesting a filter, rather than an ad hoc endpoint like /replies.

I also realize I can do it by getting /replies then filtering the unwanted posts, but that consumes time and bandwidth, particularly given the 200 post limit per response.

orianmarx commented 11 years ago

This is due to the way our backend is architected. Storing reply trees can become pretty complex so to optimize we store them in a way that requires fetching the whole thread and recreating the reply structure. We're very unlikely to change this approach so I'm closing this thread.