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.
진행도
API 10개 구현하였고, 관련 유효성 검사와 예외처리 코드를 구현하였습니다
구현한 API
등록과 조건에 맞는 데이터를 list 형태로 응답하는 API를 위주로 구현하였습니다.
https://documenter.getpostman.com/view/35009489/2sA3JT3JUc
예외 처리 / 유효성 검사
관련 클래스들의 상속 구조가 복잡해서 바로 이해하기는 힘들었습니다.
워크북 작성 후 강의 보면서 도움 받았습니다.
아직 클래스들을 어느 패키지에서 제공하고, 서로의 interface 상속관계가 좀 헷갈리는 것 같습니다.
bean Vaildation을 사용해 사용자가 넘기는 인수들에대해 유효성 검사는 Controller layer에서
DB값을 조회해 값의 중복, 유효한 id인지에 대한 검사는 service layer에서 구현하였습니다.
어느 layer에서 검사를 진행해야 할지, 어떤 예외가 발생할지 전부 파악하려면 많은 test case가 필요할 것 같습니다.