story-dict
  1. 댓글
story-dict
  • v0
    • ping-pong
      GET
  • v1
    • 인증
      • 로그아웃
    • 유저
      • 로그인한 유저 정보 요청
      • 회원가입
    • 이미지
      • 미리 서명된 URL
      • 이미지 이동
    • 이야기
      • 리액션
        • 이야기의 리액션 생성
        • 이야기의 리액션 수정
        • 이야기의 리액션 제거
      • 댓글
        • 리액션
          • 이야기의 댓글의 리액션 생성
          • 이야기의 댓글의 리액션 수정
          • 이야기의 댓글의 리액션 삭제
        • 이야기의 댓글 생성
          POST
        • 이야기의 모든 댓글들 가져오기
          GET
        • 이야기의 댓글 수정
          PATCH
        • 이야기의 댓글 삭제
          DELETE
      • 모든 이야기들 가져오기
        GET
      • 랜덤 이야기들 가져오기
        GET
      • 단일 이야기 가져오기
        GET
      • 제목으로 단일 이야기 가져오기
        GET
      • 키워드로 이야기들 검색
        GET
      • 카테고리로 이야기들 가져오기
        GET
      • 단일 이야기 수정
        PATCH
      • 단일 이야기 삭제
        DELETE
      • 이야기 제목 중복 검사
        POST
      • 단일 이야기 생성
        POST
  1. 댓글

이야기의 댓글 수정

Develop Env
http://localhost:9050
Develop Env
http://localhost:9050
PATCH
/apis/v1/stories/{stories}/comments/{commentId}
storycomment
이야기의 댓글 수정

Request

Path Params
stories
string 
required
이야기 식별자
Example:
00000000-0000-0000-0000-200000000000
commentId
string 
required
댓글의 식별자
Example:
f158fcdf-2066-4232-9662-46446b530e37
Body Params application/json
content
string 
required
댓글 내용
storyId
string 
required
연결된 이야기 식별자
Example
{
    "content": "Postman 댓글 수정"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'http://localhost:9050/apis/v1/stories/00000000-0000-0000-0000-200000000000/comments/f158fcdf-2066-4232-9662-46446b530e37' \
--header 'Content-Type: application/json' \
--data-raw '{
    "content": "Postman 댓글 수정"
}'

Responses

🟢200🟢 댓글 수정 성공
application/json
Body
toast
object 
required
title
string 
required
description
string 
required
payload
object 
required
댓글 스키마
id
string 
required
댓글 식별자
createdAt
string 
required
생성 일자
Default:
CURRENT_TIMESTAMP
updatedAt
string 
required
수정 일자
deletedAt
string  | null 
optional
삭제 일자
content
string 
required
댓글 내용
userId
string 
required
작성자 식별자
storyId
string 
required
연결된 이야기 식별자
user
object 
required
reactions
array [object {4}] 
required
Example
{
    "toast": {
        "title": "댓글 수정 완료",
        "description": "댓글을 수정했습니다."
    },
    "payload": {
        "id": "79f2f717-37e6-4871-8a7c-85cad8375882",
        "createdAt": "2025-01-12T01:23:54.665Z",
        "updatedAt": "2025-01-12T01:32:01.076Z",
        "deletedAt": null,
        "content": "Postman 댓글 수정",
        "userId": "00000000-0000-0000-0000-000000000000",
        "postId": "00000000-0000-0000-0000-200000000000",
        "user": {
            "id": "00000000-0000-0000-0000-000000000000",
            "nickname": "개발자",
            "imagePath": null
        },
        "reactions": []
    }
}
🟠400🔴 유효성 검사 실패
🟠403🔴 권한없음
🟠404🔴 존재하지 않음
Previous
이야기의 모든 댓글들 가져오기
Next
이야기의 댓글 삭제
Built with