On this page

10 endpoints.

MethodPathSummary
GET/api/{resourceType}/{resourceId}/commentsGet all comments for a resource
POST/api/{resourceType}/{resourceId}/commentsAdd a comment to a resource
POST/api/{resourceType}/{resourceId}/comments/{commentId}Reply to a comment (nested comment)
DELETE/api/comments/{commentId}Delete a comment
PATCH/api/comments/{commentId}Edit a comment
DELETE/api/comments/{commentId}/likeUnlike a comment
POST/api/comments/{commentId}/likeLike a comment
GET/api/tweets/{tweetId}/commentsGet tweet comments (تعليقات المنشور)
POST/api/tweets/{tweetId}/commentsAdd comment to tweet (إضافة تعليق)
POST/api/tweets/{tweetId}/comments/{commentId}Reply to a comment (الرد على تعليق)

Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
resourceTypepathyesstring—
resourceIdpathyesstring (uuid)—
pagequerynointeger—
limitquerynointeger—

Responses

StatusDescriptionBody
200List of comments—

Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
resourceTypepathyesstring—
resourceIdpathyesstring (uuid)—

Request body (required) — multipart/form-data

FieldTypeRequiredDescription
contentstringyes—
filestring (binary)no—

Responses

StatusDescriptionBody
201Comment added successfully—

Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
resourceTypepathyesstring—
resourceIdpathyesstring (uuid)—
commentIdpathyesstring (uuid)—

Request body (required) — multipart/form-data

FieldTypeRequiredDescription
contentstringyes—
filestring (binary)no—

Responses

StatusDescriptionBody
201Reply added successfully—

Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
commentIdpathyesstring (uuid)—

Responses

StatusDescriptionBody
200Comment deleted successfully—
403Not authorized to delete this comment—

Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
commentIdpathyesstring (uuid)—

Request body (required) — application/json

FieldTypeRequiredDescription
contentstringyes—

Responses

StatusDescriptionBody
200Comment updated successfully—
403Not authorized to edit this comment—

Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
commentIdpathyesstring (uuid)—

Responses

StatusDescriptionBody
200Comment unliked successfully—

Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
commentIdpathyesstring (uuid)—

Responses

StatusDescriptionBody
200Comment liked successfully—

Returns paginated comments for a tweet Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
tweetIdpathyesstring (uuid)—
pagequerynointeger—
limitquerynointeger—

Responses

StatusDescriptionBody
200Paginated list of comments—

Add a new comment to a tweet Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
tweetIdpathyesstring (uuid)—

Request body (required) — application/json

Type: CreateCommentRequest

Responses

StatusDescriptionBody
201Comment added successfully—
403User is restricted from commenting—

Add a reply to an existing comment Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
tweetIdpathyesstring (uuid)—
commentIdpathyesstring (uuid)—

Request body (required) — application/json

Type: CreateCommentRequest

Responses

StatusDescriptionBody
201Reply added successfully—