Skip to content

[Backend] 댓글 작성 및 조회 API 구현 #19

Description

@HyeYeonLee0112

목적

게시글별 댓글 조회와 로그인 사용자 댓글 작성을 구현한다.

작업 내용

  • GET /posts/{post_id}/comments API를 만든다.
  • POST /posts/{post_id}/comments API를 만든다.
  • 댓글 작성 시 current_user를 작성자로 저장한다.
  • 없는 게시글에 댓글 작성 시 에러를 반환한다.

완료 기준

  • 게시글별 댓글 목록을 조회할 수 있다.
  • 로그인한 사용자는 댓글을 작성할 수 있다.
  • 로그인하지 않은 사용자는 댓글을 작성할 수 없다.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Fields

Priority

None yet

Start date

Jun 11, 2026

Target date

Jun 11, 2026

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions