Skip to content

Comment service #21

Description

@Thanhloc913

Comment service:

Create comment

  • Screens: Post
  • Actions:
    • Create comment
  • Endpoints: POST / /Post/createComment?postid=
  • Flows:
    • Login -> Post ->create comment
    • Login -> profile -> Post -> create comment
    • Login -> page -> Post -> create comment
    • Login -> Post -> create comment
    • Login -> friend's profile -> Post -> create comment
      Note: The post owner can delete all comments, other people can only delete their comments, other people cannot delete the post owner's comments

delete comment

  • Screens: Post
  • Actions: delete available comment
  • Endpoints: DELETE / /Post/deleteComment?id=
  • Flows:
    • Login -> Post -> delete comment
    • Login -> profile -> Post -> delete comment
    • Login -> page -> Post -> delete comment
    • Login -> group - Post -> delete comment
    • Login -> friend's profile -> Post -> delete comment
      Note: The post owner can delete all comments, other people can only delete their comments, other people cannot delete the post owner's comments

update comment

  • Screens: Post
  • Actions: update comment information
  • Endpoints: PUT / /Post/updateComment?id=
  • Flows:
    • Login -> Post -> update comment
    • Login -> profile -> Post -> update comment
    • Login -> page -> Post -> update comment
    • Login -> group - Post -> update comment
    • Login -> friend's profile -> Post -> update comment

Create Reply(children comment)

  • Screens: Post
  • Actions: reply comment information
  • Endpoints: POST / /Post/Comment/Reply?commentid=
  • Flows:
    • Login -> Post -> Post comment -> create comment
    • Login -> profile -> Post -> Post comment -> reply comment
    • Login -> page -> Post -> Post comment -> reply comment
    • Login -> group - Post -> Post comment -> reply comment
    • Login -> friend's profile -> Post -> Post comment -> reply comment

Delete Reply(children comment)

  • Screens: Post
  • Actions: delete available reply comment
  • Endpoints: DELETE / /Post/Comment/Reply?commentid=
  • Flows:
    • Login -> Post -> Post comment -> delete comment
    • Login -> profile -> Post -> Post comment -> delete reply comment
    • Login -> page -> Post -> Post comment -> delete reply comment
    • Login -> group - Post -> Post comment -> delete reply comment
    • Login -> friend's profile -> Post -> Post comment -> delete reply comment

Update Reply(children comment)

  • Screens: Post
  • Actions: update reply comment information
  • Endpoints: PUT / /Post/Comment/Reply?commentid=
  • Flows:
    • Login -> Post -> Post comment -> update comment
    • Login -> profile -> Post -> Post comment -> update reply comment
    • Login -> page -> Post -> Post comment -> update reply comment
    • Login -> group - Post -> Post comment -> update reply comment
    • Login -> friend's profile -> Post -> Post comment -> update reply comment

Create Media

  • Screens: Post
  • Actions: create media in comment
  • Endpoints: POST / /media/create?id=
  • Flows:
    • Login -> Post -> Post comment -> create media
    • Login -> profile -> Post -> Post comment -> create media
    • Login -> page -> Post -> Post comment -> create media
    • Login -> group - Post -> Post comment -> create media
    • Login -> friend's profile -> Post comment -> create media

Delete Media

  • Screens: Post
  • Actions: Delete media in comment
  • Endpoints: Delete / /media/delete?id=
  • Flows:
    • Login -> Post -> Post comment -> delete media
    • Login -> profile -> Post -> Post comment -> delete media
    • Login -> page -> Post -> Post comment -> delete media
    • Login -> group - Post -> Post comment -> delete media
    • Login -> friend's profile -> Post comment -> delete media

Tag

  • Screens: Post
  • Actions: Tag people in comment
  • Endpoints: POST / /tag/createtag?id=
  • Flows:
    • Login -> Post -> tag
    • Login -> profile -> Post -> delete media
    • Login -> page -> Post -> delete media
    • Login -> group - Post ->delete media
    • Login -> friend's profile -> delete media

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions