Skip to content

김채원 API 코드 구현#12

Open
chaechaek1m wants to merge 1 commit intoGDSC-PKNU-Official:mainfrom
chaechaek1m:Chaewon
Open

김채원 API 코드 구현#12
chaechaek1m wants to merge 1 commit intoGDSC-PKNU-Official:mainfrom
chaechaek1m:Chaewon

Conversation

@chaechaek1m
Copy link
Copy Markdown

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

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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