GET /threads

{ data : [... threads] }

A thread has an id, text, the count of total children beneath it, an array of children ids

GET /comments/:id

{ data : [... comments] }

The comments are of the same form as the threads (id, text, etc.), but may also have a parent_id. Missing parent_id indicates a root comment.

POST /threads/create

Parameters (all required):

{ text : string }

The text will be sanitized and passed through a Markdown library.

Returns:

{ data: newly created thread object }

POST /comments/create

Parameters (all required):

{ text: string, parent: string (id) }

The text will be sanitized and passed through a Markdown library.

Returns:

{ data: newly created comment }

All endpoints randomly fail (500)

good luck!