Post Handlers

The Post category focuses on creating and interacting with posts and comments. It includes handlers for submitting new posts, liking/unliking posts, and adding comments to posts.

Contained Handlers:

  1. Submit Post Allows users to create a new post. The post can include text, images, and additional metadata.

    • Example Usage: A user shares a new blog or a social media update.

    • Key Parameters: content, media, tags.

    • Common Scenarios: Social feeds, blogging platforms.

  2. Like Post Enables liking and unliking of posts. This handler also provides updated like counts for posts.

    • Example Usage: Toggle a "like" on a post in a social feed.

    • Key Parameters: post_id.

    • Common Scenarios: Social media interactions, post engagement tracking.

  3. Submit Comment Allows users to add or edit comments on posts. Supports replies to other comments for nested discussions.

    • Example Usage: Add a new comment or reply to an existing comment.

    • Key Parameters: post_id, content, parent_comment_id.

    • Common Scenarios: Social discussions, blog comment sections.

Last updated