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

8주차 미션 / 서버 1조 김상준 #29

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

drbug2000
Copy link
Contributor

진행도

API 10개 구현하였고, 관련 유효성 검사와 예외처리 코드를 구현하였습니다

구현한 API

  • POST /user
  • GET /user/address
  • POST /user/address
  • GET /users/wishList
  • POST /users/wishList
  • GET /shop/list
  • POST /shop/food-category
  • GET /shop/food-category
  • GET /shop/detail
  • POST /shop

등록과 조건에 맞는 데이터를 list 형태로 응답하는 API를 위주로 구현하였습니다.
https://documenter.getpostman.com/view/35009489/2sA3JT3JUc

예외 처리 / 유효성 검사

관련 클래스들의 상속 구조가 복잡해서 바로 이해하기는 힘들었습니다.
워크북 작성 후 강의 보면서 도움 받았습니다.
아직 클래스들을 어느 패키지에서 제공하고, 서로의 interface 상속관계가 좀 헷갈리는 것 같습니다.

bean Vaildation을 사용해 사용자가 넘기는 인수들에대해 유효성 검사는 Controller layer에서
DB값을 조회해 값의 중복, 유효한 id인지에 대한 검사는 service layer에서 구현하였습니다.

어느 layer에서 검사를 진행해야 할지, 어떤 예외가 발생할지 전부 파악하려면 많은 test case가 필요할 것 같습니다.

add github/workflow/gradle.yml
add scripts/
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 this pull request may close these issues.

1 participant