edx/cs_comments_service — pull request #82 by jimabramson (2014-01-28 12:36:22+00:00)
Title: allow pagination of responses within thread views

@gwprice

This implements resp_skip and resp_limit as optional parameters to ```GET /api/v1/threads/:thread_id```. They work only when ```recursive=true``` is also passed. Things to note:

* the skip and limit values used are echoed back in the json view (even if they were not explicitly passed and defaults were used). skip defaults to 0 and limit defaults to nil.
* though we discussed it previously, the total number of responses isn't passed back in the view. we can add this, but i'd like to see if client-side logic will suffice for pagination controls (e.g. the client knows that no further responses are available once the server returns fewer results than the amount requested).
* using a comment depth (```level_limit```) other than 3 is not presently supported when using response windowing. Behavior when the new parameters are not used is unchanged.