πŸͺ

λŒ“κΈ€μ„ μ’‹μ•„μš”ν•˜λŠ” API

Method
POST
Group
λŒ“κΈ€
μ§„ν–‰μƒνƒœ
진행쀑
MoSCoW
Must have

μ΅œμ’…λ³Έ

πŸ“™
2022/06/16

μΈμŠ€νƒ€κ·Έλž¨ URL

/web/comments/like/{likeId}
sequenceDiagram User->>+Client: κ²Œμ‹œκΈ€ λŒ“κΈ€ μ’‹μ•„μš” 등둝 μš”μ²­ Client->>API_Server: POST /api/posts/{postId}/comments/{commentId}/like Note over Client, API_Server: κ²Œμ‹œκΈ€μ˜ λŒ“κΈ€ μ’‹μ•„μš” 등둝 μš”μ²­ν•˜λŠ” API API_Server ->> Comment : λŒ“κΈ€ μƒμ„Έμ‘°νšŒ Comment ->> CommentLike : μ’‹μ•„μš” μš”μ²­ CommentLike -->> Comment : 응닡 및 μ˜ˆμ™Έμ²˜λ¦¬ Comment -->> API_Server : 응닡 및 μ˜ˆμ™Έμ²˜λ¦¬ API_Server -->>Client: 응닡 및 μ˜ˆμ™Έμ²˜λ¦¬ Client->>-User: UI μ—…λ°μ΄νŠΈ

Request

Header : { cookie: ${token} } Body : { "userId": ${userId}, "postId": ${postId}, "commentId": ${commentId} }
 

이전 λ°±μ—…

Response

{ }
 
6/15 첫 번째
 
notion image
 
sequenceDiagram User->>+Client: κ²Œμ‹œκΈ€ μ’‹μ•„μš” μš”μ²­ Client->>API_Server: POST /posts/{id}/like Note over Client, API_Server: κ²Œμ‹œκΈ€ μ’‹μ•„μš” ν•˜λŠ” API μš”μ²­ API_Server ->> Post : κ²Œμ‹œκΈ€ 상세 쑰회 μš”μ²­ Post -->> API_Server : 응닡 및 μ˜ˆμ™Έμ²˜λ¦¬ Post ->> PostLike : κ²Œμ‹œκΈ€ μ’‹μ•„μš” μš”μ²­ PostLike -->> Post : 응닡 및 μ˜ˆμ™Έμ²˜λ¦¬ Post -->> API_Server : 응닡 및 μ˜ˆμ™Έμ²˜λ¦¬ API_Server -->> Client : μ’‹μ•„μš” 응닡 Client ->> User : UI μ—…λ°μ΄νŠΈ
6/15 μˆ˜μ •
notion image
sequenceDiagram User->>+Client: κ²Œμ‹œκΈ€ λŒ“κΈ€ μ’‹μ•„μš” μ·¨μ†Œ μš”μ²­ Client->>API_Server: POST /api/posts/{postId}/comments/{commentId}/like Note over Client, API_Server: κ²Œμ‹œκΈ€μ˜ λŒ“κΈ€ μ’‹μ•„μš” μ·¨μ†Œ μš”μ²­ν•˜λŠ” API API_Server->>Member: μœ μ € 정보 쑰회 μš”μ²­ Member -->> API_Server : 응닡 및 μ˜ˆμ™Έμ²˜λ¦¬ API_Server ->> Post : κ²Œμ‹œκΈ€ μƒμ„Έμ‘°νšŒ μš”μ²­ Post -->> API_Server : 응닡 및 μ˜ˆμ™Έμ²˜λ¦¬ API_Server ->> Comment : λŒ“κΈ€ μƒμ„Έμ‘°νšŒ Comment -->> API_Server : 응닡 및 μ˜ˆμ™Έμ²˜λ¦¬ Comment ->> CommentLike : μ’‹μ•„μš” μš”μ²­ CommentLike -->> Comment : 응닡 및 μ˜ˆμ™Έμ²˜λ¦¬ Comment -->> API_Server : 응닡 및 μ˜ˆμ™Έμ²˜λ¦¬ API_Server -->>Client: 응닡 및 μ˜ˆμ™Έμ²˜λ¦¬ Client->>-User: UI μ—…λ°μ΄νŠΈ