Comments

Comment management

Get Comments by Blog

get

Retrieves all comments associated with a specific blog post.

Authorizations
AuthorizationstringRequired

JWT Access Token obtained via login/register/refresh

Path parameters
blogIdstring · objectidRequired

ID of the blog post.

Responses
200

A list of comments for the blog.

application/json
get
/comments/blog/{blogId}

Create Comment

post

Adds a new comment to a specific blog post. Increments comments count.

Authorizations
AuthorizationstringRequired

JWT Access Token obtained via login/register/refresh

Path parameters
blogIdstring · objectidRequired

ID of the blog post.

Body
contentstring · max: 1000Required

The comment text

Responses
post
/comments/blog/{blogId}

Delete Comment

delete

Deletes a specific comment. Requires user to be author or admin. Decrements comments count.

Authorizations
AuthorizationstringRequired

JWT Access Token obtained via login/register/refresh

Path parameters
commentIdstring · objectidRequired

ID of the comment.

Responses
delete
/comments/{commentId}

No content

Last updated

Was this helpful?