Create new comment API, probably expose it as an adapter.
We need the following endpoints:
- POST comment
- GET commentId
- GET documentId (this endpoint should be paginable)
- PUT commentId + comment
- DELETE commentId
Note: replying to a comment is the same thing than commenting this comment, also getting children of a comment is the same thing than getting comment of a document.
Here the Comment JSON format used to handle Comment in Nuxeo REST API:
Several endpoints are added, here the exhaustive list:
|HTTP Method||Path||Request Body||Response|
|GET||x||partial list of Comment|
|PUT||Comment with updates||updated Comment|
|PUT||Comment with updates||updated external Comment|