Develop a comment service
1. Description of the task:
Create a comment service using four API methods: POST, PUT, GET and DELETE. It is necessary to provide the ability to reply to a comment, as well as get the full tree of comments.
2. API methods:
⁃ POST /comment - creating a new comment. Input parameters: comment text, parent comment ID (if any), user ID. Output: ID of the created comment.
⁃ PUT /comment/{id} - editing an existing comment. Input parameters: comment ID, comment text, user ID.
Output: modified comment. Читать дальше...