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

[feature] 게시글 좋아요 API #9

Open
dyori04 opened this issue Oct 26, 2023 · 0 comments
Open

[feature] 게시글 좋아요 API #9

dyori04 opened this issue Oct 26, 2023 · 0 comments
Assignees
Labels
feature New feature or request

Comments

@dyori04
Copy link
Contributor

dyori04 commented Oct 26, 2023

게시글 좋아요 API

image

기능

  • 좋아요 클릭 시 SNS별 API 호출 (더미)
  • 해당 호출 성공할 시 200 OK, like count 1 증가

구현 시 고려할 점

  • content_id를 기준으로 entity를 찾고, like_count를 1 증가
  • 해당 entity의 type을 기준으로 API 호출이 진행되어야 함.
  • {content_id}가 존재하지 않을 경우가 고려되어야 함
  • 반환 메시지에 SNS 타입이 포함되어야 함

Postman Test

  1. 성공
    image
  2. 실패 (not found)
    image
@dyori04 dyori04 added the feature New feature or request label Oct 26, 2023
@dyori04 dyori04 self-assigned this Oct 26, 2023
@dyori04 dyori04 changed the title [feature] 게시글 좋아요 / 공유 API [feature] 게시글 좋아요 API Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant