Greg Price
b8576e74d6
Allow group_id to be set in discussion API
...
This also fixes two bugs:
* A thread created by a non-privileged user in a cohorted course would
not have group_id set
* Any user could set the endorsed field on creation of a comment
2015-06-29 11:08:03 -04:00
Greg Price
54756317f1
Add followed thread retrieval to discussion API
...
This implements the "following" value for the "view" query parameter on
the thread list endpoint.
2015-06-23 13:38:34 -04:00
Christopher Lee
44e13af6be
Merge pull request #8576 from edx/gprice/discussion-api-max-depth
...
Enforce MAX_COMMENT_DEPTH in discussion_api
2015-06-22 13:30:37 -04:00
Greg Price
6cd8889f9f
Merge pull request #8562 from edx/gprice/discussion-api-editable-fields
...
Add editable_fields to discussion API responses
2015-06-19 12:57:31 -04:00
Greg Price
7fcf4e3d8d
fixup! Enforce MAX_COMMENT_DEPTH in discussion_api
...
Add more extensive testing
2015-06-19 12:48:11 -04:00
Greg Price
16d7a81b96
Add editable_fields to discussion API responses
...
This will allow clients to determine what actions (e.g. following,
endorsing, and editing content) a user can take on a piece of content.
2015-06-19 12:02:21 -04:00
Greg Price
f47ab2bb18
Enforce MAX_COMMENT_DEPTH in discussion_api
2015-06-18 17:18:02 -04:00
Greg Price
6505713302
Fix discussion_api to handle old threads
...
Some old threads do not have the pinned field set, which the thread
serializer should handle.
2015-06-18 11:25:22 -04:00
Greg Price
c28b295806
Add rendered_body to discussion API endpoints
...
The rendering in this commit does not prevent MathJax content from being
rendered as the discussion JavaScript code does.
2015-06-17 20:23:30 -04:00
Greg Price
ef26e8e83f
Add comment endorsement to discussion API
2015-06-11 12:28:57 -04:00
Greg Price
895731f526
Add comment editing to discussion API
...
This is done via PATCH on a comment instance endpoint.
2015-06-11 11:39:01 -04:00
Greg Price
2c7590d197
Use parent_id returned from the comments service
...
This depends on cs_comments_service commit 0487891.
2015-06-08 16:59:21 -04:00
Greg Price
73d891313a
Add thread editing to discussion API
...
This is done via PATCH on a thread instance endpoint.
2015-06-04 10:56:43 -04:00
Greg Price
8fbfa2398e
Add comment creation to discussion API
2015-05-29 11:05:02 -04:00
Greg Price
f891450f50
Add thread creation to discussion API
...
Also, fix the field-specific error format for all API endpoints.
This requires cs_comments_service commit fdf017c918.
2015-05-26 12:42:40 -04:00
Greg Price
c83f56153e
Add comment list URLs to discussion api threads
2015-05-21 15:03:02 -04:00
Greg Price
c65893e9e0
Add endorsement fields to comment list API
2015-05-21 11:35:39 -04:00
Greg Price
2451e06788
Add comment list endpoint to Discussion API
2015-05-20 13:13:19 -04:00
Greg Price
7309352ef7
Refactor discussion API to use DRF serializer
...
This will make it easier to add the creation and update interfaces.
2015-05-18 14:03:02 -04:00