Feed

Add a like to a post

post

Adds a like to a specified post. Requires user authentication.

Body
postIdstring · uuidOptionalExample: 550e8400-e29b-41d4-a716-446655440000
Responses
200

Like successfully added to the post

No content

post
/feed/like

No content

Remove a like from a post

delete

Removes a like from a specified post. Requires user authentication.

Body
postIdstring · uuidOptionalExample: 550e8400-e29b-41d4-a716-446655440000
Responses
delete
/feed/like

No content

Add a comment to a post

post

Adds a comment to a specified post. Requires user authentication.

Body
postIdstring · uuidOptionalExample: 550e8400-e29b-41d4-a716-446655440000
commentTextstringOptionalExample: This is a comment.
Responses
200

Comment successfully added to the post

application/json
post
/feed/comment

Remove a comment from a post

delete

Removes a comment from a specified post. Requires user authentication.

Body
postIdstring · uuidOptionalExample: 550e8400-e29b-41d4-a716-446655440000
commentIdstring · uuidOptionalExample: 123e4567-e89b-12d3-a456-426614174000
Responses
delete
/feed/comment

No content

Get post reaction totals

get

Retrieves the total number of reactions (likes, etc.) for a specified post.

Path parameters
postIdstring · uuidRequiredExample: 550e8400-e29b-41d4-a716-446655440000
Responses
200

Reaction totals retrieved successfully

application/json
get
/feed/post-reactions/{postId}

Get post comments (paginated)

get

Retrieves comments for a specified post in a paginated manner.

Path parameters
postIdstring · uuidRequiredExample: 550e8400-e29b-41d4-a716-446655440000
Query parameters
pageintegerOptional

The page number to retrieve

Example: 1
pageSizeintegerOptional

The number of comments to retrieve per page

Example: 10
Responses
200

Comments retrieved successfully

application/json
get
/feed/post-comments/{postId}

Last updated