-
Notifications
You must be signed in to change notification settings - Fork 2
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
[Feat] api endpoint 목록 작성 #101
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏿
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💪
apps/api/src/auth/auth.controller.ts
Outdated
@Get('profile') | ||
profile() { | ||
return 'profile'; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
p3:
user profile에 대한 정보를 가져오는 것으로 보입니다. 해당 정보가 Auth
Controller에 정의되는 것이 아닌 User
에 정의되어야 하지 않을까 생각합니다
apps/api/src/auth/auth.controller.ts
Outdated
@Patch('/profile') | ||
patchProfile() {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
p3:
user profile에 대한 정보를 가져오는 것으로 보입니다. 해당 정보가 Auth Controller에 정의되는 것이 아닌 User에 정의되어야 하지 않을까 생각합니다
p1:
/
prefix 를 여기서만 붙이고 있는데 통일을 위해 제거해주세요!
|
||
@Controller('ticle') | ||
export class TicleController { | ||
@Post('') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
p1:
endpoint가 /
일 경우 빈 값을 넣어도 좋습니다
@Post('') | |
@Post() |
getSearchList() {} | ||
|
||
@Get(':ticleId/apply') | ||
applyTicle(@Param('ticleId') params: any) {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
applyTicle
메서드는 정확하게 어떤 역할을 하나요? 의미가 모호한 것 같습니다!
getTicleList(@Query('filter') filter?: string, @Query('sort') sort?: string) {} | ||
|
||
@Get('search') | ||
getSearchList() {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
p2:
다른 메서드들과 통일을 위해 Ticle
이란 키워드를 붙여주세요!
api 분리와 api 경로를 통일성있게 변경
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍👍👍
관련 이슈 번호
close #79
작업 내용
PR 포인트
고민과 학습내용
예를 들어 스트리밍중 카메라 on/off 와 같은 기능들은 api 서버를 타게 되는지 아직 정해지지 않아 작성하지 않았습니다.
스크린샷