COMMENT API

κ²Œμ‹œλ¬Ό λŒ“κΈ€ 쑰회

GET https://Yeollin-jib/comment/:postId

κ²Œμ‹œλ¬Ό μ•„μ΄λ””λ‘œ 전체 λŒ“κΈ€ 쑰회

Path Parameters

Name
Type
Description

postId*

Integer

{
    "data": [
        {
            "id": 1, // 데이터 λ² μ΄μŠ€μ— μ €μž₯λ˜λŠ” λŒ“κΈ€ 아이디
            "userId": 4, // λŒ“κΈ€μ„ μž‘μ„±ν•œ μœ μ €μ˜ 아이디
            "postId": 4, // κ²Œμ‹œκΈ€μ˜ 아이디
            "contents": "μ•ˆλ…•",
            "createdAt": "2021-10-27T03:39:33.000Z",
            "updateTimestamp": "2021-10-27T03:39:33.000Z",
            "users": [
                {
                    "nickname": "까까h",
                    "imagePath": "IMG_7429(1636134049182).jpg"
                }
            ]
        },
        {
            "id": 3, // 데이터 λ² μ΄μŠ€μ— μ €μž₯λ˜λŠ” λŒ“κΈ€ 아이디 
            "userId": 4, // λŒ“κΈ€μ„ μž‘μ„±ν•œ μœ μ €μ˜ 아이디
            "postId": 4, // κ²Œμ‹œκΈ€μ˜ 아이디
            "contents": "μ•ˆλ…•",
            "createdAt": "2021-10-27T03:43:24.000Z",
            "updateTimestamp": "2021-10-27T03:43:24.000Z",
            "users": [
                {
                    "nickname": "suzysoyeonghwang",
                     "imagePath": "IMG_7429(1636134049182).jpg"
                }
            ]
        },
        {
            "id": 4, // 데이터 λ² μ΄μŠ€μ— μ €μž₯λ˜λŠ” λŒ“κΈ€ 아이디
            "userId": 4, // λŒ“κΈ€μ„ μž‘μ„±ν•œ μœ μ €μ˜ 아이디
            "postId": 4, // κ²Œμ‹œκΈ€μ˜ 아이디
            "contents": "μ•ˆλ…•2",
            "createdAt": "2021-10-27T03:56:01.000Z",
            "updateTimestamp": "2021-10-27T04:36:32.000Z",
            "users": [
                {
                    "nickname": "κΉ€μ½”λ”©",
                     "imagePath": "IMG_7429(1636134049182).jpg"
                }
            ]
        }
    ],
    "message": "λŒ“κΈ€μ΄ μ„±κ³΅μ μœΌλ‘œ μ‘°νšŒλ˜μ—ˆμŠ΅λ‹ˆλ‹€."
}

λ‚΄κ°€ μ“΄ λŒ“κΈ€ 쑰회

GET https://Yeollin-jib/comment/me

λ‚΄κ°€ μ“΄ 전체 λŒ“κΈ€ 쑰회

Headers

Name
Type
Description

Authorization*

String

accessToken

κ²Œμ‹œλ¬Ό λŒ“κΈ€ μ“°κΈ°

POST https://Yeollin-jib/comment/:postId

κ²Œμ‹œλ¬Ό 아이디λ₯Ό μž…λ ₯ν•΄μ„œ κ·Έ κ²Œμ‹œλ¬Όμ— λŒ“κΈ€ μž‘μ„±

Path Parameters

Name
Type
Description

postId*

Integer

Headers

Name
Type
Description

Authorization*

String

Request Body

Name
Type
Description

contents*

String

κ²Œμ‹œλ¬Ό λŒ“κΈ€ μˆ˜μ •

PATCH https://Yeollin-jib/comment/:commentId

λŒ“κΈ€ μ•„μ΄λ””λ‘œ λŒ“κΈ€ μˆ˜μ •

Path Parameters

Name
Type
Description

commentId*

Integer

Headers

Name
Type
Description

Authorization*

String

Request Body

Name
Type
Description

contents*

String

κ²Œμ‹œλ¬Ό λŒ“κΈ€ μ‚­μ œ

DELETE https://Yeollin-jib/comment/:commentId

λŒ“κΈ€ μ•„μ΄λ””λ‘œ λŒ“κΈ€ μ‚­μ œ

Path Parameters

Name
Type
Description

commentId*

Integer

Headers

Name
Type
Description

Authorization*

String

Last updated