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

김채원 API 코드 구현 #12

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

chaechaek1m
Copy link

UserController: 사용자 추가, 조회
BookController: 책 제목 추가, 조회

Copy link
Contributor

@coke98 coke98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

다양한 구현을 원하긴했는데, book과 user 도메인이 이름 이외에는 다른 구조가 없어 아쉬웠어요. 다음 과제에서 더 기대해보겠습니다! 고생하셨습니다~

public class UserController {
private List<User> users = new ArrayList<>();

@GetMapping("/get")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이미 GET메서드가 URL에서 명시한 자원을 가져온다라는 의미가 있기에
GET메서드와 중복되게 /users/get, add를 써야할지 한번 고민해봐도 좋을 것 같아요


public User() {

}
Copy link
Contributor

@coke98 coke98 Jun 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

바인딩과 기본 생성자 관련한 문제는 다른 분들도 많이 겪으신 것 같네요
채원님께서도 이번에 잘 기록해두었으니 다음에 잘 활용해주세요~!

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.

2 participants