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

[4기 소재훈] JPA 게시판 미션 제출 (엔티티 정의, 레포지토리 정의, API 구현, Rest Docs 문서화) #243

Open
wants to merge 53 commits into
base: jay-so/develop
Choose a base branch
from

Conversation

jay-so
Copy link
Member

@jay-so jay-so commented Aug 3, 2023

👩‍💻 요구 사항과 구현 내용

1. 기본 요구사항

SpringDataJPA 를 설정한다.

  • datasource : h2

엔티티를 구성한다

  • 회원(User)
    • id (PK) (auto increment)
    • name
    • age
    • hobby
    • created_at
    • created_by
  • 게시글(Post)
    • id (PK) (auto increment)
    • title
    • content
    • created_at
    • created_by
  • 회원과 게시글에 대한 연관관계를 설정한다.
    • 회원과 게시글은 1:N 관계이다.
    • 게시글 Repository를 구현한다. (PostRepository)

API를 구현한다.

  • 게시글 조회
    • 페이징 조회 (GET "/posts")
    • 단건 조회 (GET "/posts/{id}")
  • 게시글 작성 (POST "/posts")
  • 게시글 수정 (PATCH "/posts/{id}")
  • 게시글 삭제 (DELETE "/posts/{id}")

REST-DOCS를 이용해서 문서화한다.

  • 유저 API 문서화
  • 게시글 API 문서화

✅ 피드백 반영사항

  • 이전 close된 PR(엔티티 설계,레포지토리 정의 )의 모든 피드백을 반영했습니다!

@jay-so jay-so requested a review from Hchanghyeon August 6, 2023 06:53
@jay-so jay-so changed the title [4기 소재훈] JPA 게시판 미션 제출 (엔티티 정의, 레포지토리 정의, API 구현) [4기 소재훈] JPA 게시판 미션 제출 (엔티티 정의, 레포지토리 정의, API 구현, Rest Docs 문서화) Aug 6, 2023
@jay-so jay-so requested review from hanjo8813 and mentor-tyler and removed request for hanjo8813 and mentor-tyler August 6, 2023 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants