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

[Feat] api endpoint 목록 작성 #101

Merged
merged 5 commits into from
Nov 5, 2024
Merged

[Feat] api endpoint 목록 작성 #101

merged 5 commits into from
Nov 5, 2024

Conversation

Fixtar
Copy link
Collaborator

@Fixtar Fixtar commented Nov 5, 2024

관련 이슈 번호

close #79

작업 내용

  • auth api 목록 작성
  • ticle api 목록 작성

PR 포인트

고민과 학습내용

  • stream 관련 사항은 api를 어떻게 작성해야할지 몰라서 미루게 되었습니다.
    예를 들어 스트리밍중 카메라 on/off 와 같은 기능들은 api 서버를 타게 되는지 아직 정해지지 않아 작성하지 않았습니다.

스크린샷

@Fixtar Fixtar added BE Backend 관련 작업 ✨ Feature 새로운 기능 추가 labels Nov 5, 2024
@github-actions github-actions bot added the size/s label Nov 5, 2024
Copy link
Collaborator

@begong313 begong313 left a comment

Choose a reason for hiding this comment

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

👍🏿

Copy link
Collaborator

@Jieun1ee Jieun1ee left a comment

Choose a reason for hiding this comment

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

💪

@begong313 begong313 added this to the 통합 개발 환경 구축 milestone Nov 5, 2024
Comment on lines 13 to 16
@Get('profile')
profile() {
return 'profile';
}
Copy link
Collaborator

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에 정의되어야 하지 않을까 생각합니다

Comment on lines 18 to 19
@Patch('/profile')
patchProfile() {}
Copy link
Collaborator

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('')
Copy link
Collaborator

Choose a reason for hiding this comment

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

p1:
endpoint가 /일 경우 빈 값을 넣어도 좋습니다

Suggested change
@Post('')
@Post()

getSearchList() {}

@Get(':ticleId/apply')
applyTicle(@Param('ticleId') params: any) {}
Copy link
Collaborator

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() {}
Copy link
Collaborator

@seoko97 seoko97 Nov 5, 2024

Choose a reason for hiding this comment

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

p2:
다른 메서드들과 통일을 위해 Ticle이란 키워드를 붙여주세요!

api 분리와 api 경로를 통일성있게 변경
@begong313 begong313 requested a review from seoko97 November 5, 2024 06:13
@github-actions github-actions bot added size/m and removed size/s labels Nov 5, 2024
@github-actions github-actions bot added size/s and removed size/m labels Nov 5, 2024
Copy link
Collaborator

@seoko97 seoko97 left a comment

Choose a reason for hiding this comment

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

👍👍👍

@Fixtar Fixtar merged commit 8584d8a into develop Nov 5, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BE Backend 관련 작업 ✨ Feature 새로운 기능 추가 size/s
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feat] API 엔드 포인트 목록 작성
4 participants