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
POST
/apis/v1/stories/{storyId}/comments
storycomment
이야기의 댓글 생성

Request

Path Params
storyId
string 
required
이야기 식별자
Example:
00000000-0000-0000-0000-200000000000
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 POST 'http://localhost:9050/apis/v1/stories/00000000-0000-0000-0000-200000000000/comments' \
--header 'Content-Type: application/json' \
--data-raw '{
    "content": "Postman으로 만든 댓글"
}'

Responses

🟢201🟢 댓글 생성 성공
application/json
Body
toast
object (Toast) 
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
Example
{
    "toast": {
        "title": "댓글 작성 완료",
        "description": "댓글을 작성했습니다."
    },
    "payload": {
        "id": "79f2f717-37e6-4871-8a7c-85cad8375882",
        "createdAt": "2025-01-12T01:23:54.665Z",
        "updatedAt": "2025-01-12T01:23:54.665Z",
        "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