Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

[Feat] 식물 정보 조회 API #44

Merged
merged 6 commits into from
Jan 25, 2024

Conversation

goldentrash
Copy link
Collaborator

개요

식물 정보 조회 API 구현 (close #39)

Todo

  • PlantInformationAcceptance 테스트 작성
  • PlantInformationQueryApi 구현

등록 전 확인

  • 모든 test가 pass했나요?
  • 모든 code가 well-formatted인가요?
  • commit message는 직관적이었을까요?
  • 삭제해야 할, 주석처리 된 코드는 없을까요?

@goldentrash goldentrash self-assigned this Jan 25, 2024
@goldentrash goldentrash added the 🚀 기능 구현 🚀 기능 구현 label Jan 25, 2024
@goldentrash goldentrash linked an issue Jan 25, 2024 that may be closed by this pull request
3 tasks
Copy link
Member

@zbqmgldjfh zbqmgldjfh left a comment

Choose a reason for hiding this comment

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

ver1까지의 최후의 구현을두고 정말 수고 많으셨습니다!!
일부분만 수정해주시면 좋을것 같아요!!

"""
SELECT new gdsc.plantory.plantInformation.presentation.dto.PlantInformationDto(
pi.id,
pi.imageUrl._value,
Copy link
Member

Choose a reason for hiding this comment

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

저희 전체 조회에서 이미지가 필요할까요??
현 모델에서는 이름과 id만 반환해줘도 충분할 것 같아서요!!

FROM PlantInformation pi
"""
)
fun findAllProjected(): List<PlantInformationDto>
Copy link
Member

Choose a reason for hiding this comment

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

혹시 이름이 왜 Projected인가요?? 이 메서드 이름만 보고는 왜 전체 식물 정보가 조회되는지 모르겠습니다?

.get("/api/v1/plantInformations")
.then()
.log().all()
.statusCode(HttpStatus.OK.value())
Copy link
Member

Choose a reason for hiding this comment

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

HttpStatus 검증은 여기서 빼도 될것 같아요!! 확인쪽에서 검증해주고 있어서요!!

@goldentrash goldentrash merged commit 35cf3b6 into develop Jan 25, 2024
1 check passed
@goldentrash goldentrash deleted the feat/plantInformation-query-#39 branch January 25, 2024 13:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feat]: 전체 식물 종 조회 API
2 participants