- 
                Notifications
    You must be signed in to change notification settings 
- Fork 200
[4기 김영명, 김희빈] Spring Boot JPA로 게시판 구현 미션 제출합니다. #240
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
          
     Open
      
      
            kmebin
  wants to merge
  23
  commits into
  희빈,영명-mission-제출
  
    
      
        
          
  
    
      Choose a base branch
      
     
    
      
        
      
      
        
          
          
        
        
          
            
              
              
              
  
           
        
        
          
            
              
              
           
        
       
     
  
        
          
            
          
            
          
        
       
    
      
from
희빈,영명-mission
  
      
      
   
  
    
  
  
  
 
  
      
    base: 희빈,영명-mission-제출
Could not load branches
            
              
  
    Branch not found: {{ refName }}
  
            
                
      Loading
              
            Could not load tags
            
            
              Nothing to show
            
              
  
            
                
      Loading
              
            Are you sure you want to change the base?
            Some commits from the old base branch may be removed from the timeline,
            and old review comments may become outdated.
          
          The head ref may contain hidden characters: "\uD76C\uBE48,\uC601\uBA85-mission"
Conversation
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
    
    
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
      
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
📌 과제 설명
👩💻 요구 사항과 구현 내용
요구 사항
1. 엔티티 구성
회원(User)
게시글(Post)
회원과 게시글에 대한 연관관계를 설정한다.
회원과 게시글은 1:N 관계이다.
게시글 Repository를 구현한다.
2. API 구현
POST"/posts")GET"/posts?page=&size=")GET"/posts/{postId}")PATCH"/posts/{postId}")3. REST-DOCS를 이용한 문서화
✅ PR 포인트 & 궁금한 점
전체적으로 생성자 대신 빌더 패턴을 사용했습니다.
Service 테스트 시에 Mockito를 사용했습니다.
테스트 시 자주 사용되는 객체를 생성하는 Fixture 클래스를 따로 분리했습니다.
현재는 API 버저닝이 필요하지 않은 상황이기에 적용하지 않았습니다. 이에 대해 전에 훈기 멘토님께서 말씀해주신 것이 생각나서 추가로 질문드립니다!