Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] 게시물 좋아요 기능 구현 #28

Merged
merged 11 commits into from
Aug 26, 2024
Merged

[feat] 게시물 좋아요 기능 구현 #28

merged 11 commits into from
Aug 26, 2024

Conversation

rhaehf
Copy link
Contributor

@rhaehf rhaehf commented Aug 26, 2024

Issue

PR 타입(하나 이상의 PR 타입을 선택해주세요)

  • 기능 추가
  • 기능 삭제
  • 버그 수정
  • 의존성, 환경 변수, 빌드 관련 코드 업데이트

반영 브랜치

ex) feat/posts_like-> dev

변경 사항

  • 파일명, 변수명 Content -> Post로 변경
  • 게시물 좋아요 기능 구현

테스트 결과

Request

HTTP : POST
URL: /api/posts/likes/:postId

Response : 성공시

{
    "postId": "게시물아이디",
    "messgae": "좋아요 수 증가 완료"
}

Response : 실패시

  • 500 Internal Server Error

    • 잘못된 postId를 입력했을 때
      {
          "postId": "게시물아이디",
          "messgae": {
              "좋아요 수 증가 실패": "존재하지 않는 엔티티입니다."
          }
      }

@rhaehf rhaehf added the feat label Aug 26, 2024
@rhaehf rhaehf self-assigned this Aug 26, 2024
@rhaehf rhaehf linked an issue Aug 26, 2024 that may be closed by this pull request
4 tasks
Copy link
Contributor

@jw427 jw427 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨습니다!

@rhaehf
Copy link
Contributor Author

rhaehf commented Aug 26, 2024

이전 커밋 메시지를 입력하지 못해서 올립니다.
feat : CustomException으로 교체하여 예외 처리 작업 개선 (b93636e)

Copy link
Contributor

@jeongeungyeong jeongeungyeong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨습니다!

Copy link
Contributor

@K-0joo K-0joo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨습니다!

@rhaehf rhaehf merged commit 3cf7a40 into dev Aug 26, 2024
@rhaehf rhaehf deleted the feat/posts_like branch August 26, 2024 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

게시물 좋아요(API)
6 participants