Stock101 API 명세서
  1. Comments
Stock101 API 명세서
  • Stock101 API 명세서
  • Auth
    • 로그아웃
      POST
    • 로그인
      POST
  • Users
    • 사용자 정보 조회
      GET
    • 아이디(이메일) 중복체크
      GET
    • 회원가입
      POST
    • 사용자 정보 수정
      PATCH
    • 회원탈퇴
      DELETE
    • 홈 티어 높은 4명 조회
      GET
    • 유저 프로필 조회
      GET
  • Stocks
    • 주식 전체 조회
      GET
    • 주식 상세 조회
      GET
  • Board
    • 게시물 추가
      POST
    • 게시물 단건 조회
      GET
    • 게시물 삭제
      DELETE
    • 사용자 게시물 조회
      GET
    • 게시물 목록 조회
      GET
    • 게시물 좋아요
      POST
    • 나의 게시물 목록 조회
      GET
  • Comments
    • 댓글 조회
      GET
    • 댓글 추가
      POST
    • 댓글 삭제
      DELETE
  • Predictions
    • 주가 예측 생성
      POST
    • 주가 예측 조회
      GET
    • 특정 유저 예측 목록 조회
      GET
  • Indicators
    • 개미지표 조회
    • 뉴스지표 조회
    • 전문가지표 조회
    • 재무지표 조회
  • Schemas
    • Schemas
      • TierCode
      • UpDownEnum
      • ErrorResponse
      • ValidationError
      • UserProfile
      • AuthLoginResponse
      • StockSummary
      • StockPricePoint
      • FinancialIndicator
      • EconomicEvent
      • AnalystIndicator
      • IndividualIndicator
      • NewsIndicator
      • Post
      • Comment
      • PredictionResult
      • PredictionItem
      • PredictionPagedResponse
  1. Comments

댓글 추가

POST
/board/posts/{postId}/comments

Request

Authorization
JWT Bearer
Add the parameter
Authorization
to Headers
Example:
Authorization: ********************
or
Path Params

Header Params

Body Params application/json

Examples

Responses

🟢201Created
application/json
Created
Body

🟠400Bad Request
🟠401Unauthorized
🟠404Record Not Found
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/board/posts//comments' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "userId": 0,
    "content": "string",
    "parentCommentId": 0
}'
Response Response Example
201 - Example 1
{
    "commentId": 0,
    "postId": 0,
    "userId": 0,
    "content": "string",
    "createdAt": "2019-08-24T14:15:22.123Z",
    "isDeleted": true,
    "parentCommentId": 0
}
Modified at 2025-09-13 08:31:10
Previous
댓글 조회
Next
댓글 삭제
Built with