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
GET
/apis/v1/stories/{storyId}/comments
storycomment
이야기의 모든 댓글들 가져오기
현재는 모든 댓글들을 가져오지만 이후에 필요해지면 페이지네이션을 넣을 예정

Request

Path Params
storyId
string 
required

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 GET 'http://localhost:9050/apis/v1/stories//comments'

Responses

🟢200🟢 댓글들 가져오기 성공
application/json
Body
payload
array[object (StoryComment) {9}] 
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
{
    "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🔴 유효성 검사 실패
🟠404🔴 존재하지 않음
Previous
이야기의 댓글 생성
Next
이야기의 댓글 수정
Built with