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

카드 게시글 CRUD API #34

Open
abcdana opened this issue Mar 3, 2025 · 4 comments · May be fixed by #41
Open

카드 게시글 CRUD API #34

abcdana opened this issue Mar 3, 2025 · 4 comments · May be fixed by #41
Assignees

Comments

@abcdana
Copy link
Collaborator

abcdana commented Mar 3, 2025

  • 카드 형식의 게시글을 등록하는 API 추가
  • Endpoint: /api/posts (POST)
  • 요구 사항
    • 게시글 등록 시 제목, 내용, 이미지 리스트를 포함
    • 요청 데이터 검증 후 DB에 저장
    • 저장된 게시글의 postId 반환
@abcdana abcdana self-assigned this Mar 3, 2025
@abcdana abcdana changed the title 카드 게시글 등록 API 카드 게시글 CRUD API Mar 3, 2025
@abcdana
Copy link
Collaborator Author

abcdana commented Mar 3, 2025

  • 게시글 수정 기능 추가
  • Endpoint: /api/posts/{postId} (PUT)
  • 요구 사항
    • 게시글 제목 및 내용 수정 가능
    • 기존 이미지 수정 기능은 제외 (이미지 변경 시 삭제 후 새로 업로드)

@abcdana
Copy link
Collaborator Author

abcdana commented Mar 3, 2025

  • 게시글 삭제 기능 추가
  • Endpoint: /api/posts/{postId} (DELETE)
  • 요구 사항
    • 작성자 본인만 삭제 가능
    • 삭제 후 관련 좋아요, 북마크, 댓글도 함께 삭제

@abcdana
Copy link
Collaborator Author

abcdana commented Mar 3, 2025

  • 전체 게시글을 페이징하여 조회하는 API 추가
  • Endpoint: /api/posts (GET)
  • 요구 사항
    • 최신순으로 정렬하여 반환
    • 페이지네이션 적용
    • 좋아요순, 댓글순으로 정렬 변환 가능

@abcdana
Copy link
Collaborator Author

abcdana commented Mar 3, 2025

  • 특정 게시글의 상세 정보를 조회하는 API 추가
  • Endpoint: /api/posts/{postId} (GET)
  • 요구 사항
    • 게시글의 상세 정보 제공 (제목, 내용, 이미지, 작성자, 작성 시간 등)
    • 댓글, 좋아요, 북마크 개수 포함

@abcdana abcdana linked a pull request Mar 6, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant