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

(관리자) 상품 소개 관리 추가 #224

Merged
merged 4 commits into from
Sep 22, 2023

Conversation

parkcoldroad
Copy link
Contributor

Closes #223

백로그 이름 : (관리자) 상품 소개 관리 추가


작업

  • 상품 소개 관리 추가

API

POST  admin/product/{productId}/introduction
Status: 
  201: 추가 성공
  404: productId에 해당하는 Product가 없음

Request Header: {
Authorization: access_token
}

 {
    "productId" : String,
    "imageFile": MultipartFile
 }

CODE


테스트 결과

image


이슈

  • 관리자 서비스를 인스턴스로 따로 나누지 말고 병합하는게 어떤지
  • API를 수기로 작성 및 수정하지 말고 Swagger나 Rest Doc 을 쓰는게 어떤지

@ImKunYoung
Copy link
Collaborator

  • 관리자 서비스를 인스턴스로 따로 나누지 말고 병합하는게 어떤지? 🦈니다
  • API를 수기로 작성 및 수정하지 말고 Swagger나 Rest Doc 을 쓰는게 어떤지?
    implementation 'org.springdoc:springdoc-openapi-webmvc-core:1.7.0'
    implementation 'org.springdoc:springdoc-openapi-ui:1.7.0'

이 조합 추천함

/v3/api-docs 이런 식으로 지정한 url 들어가면 open api 표준 json 던져줌
so, Swagger 에 더해서 Postman에서도 사용 가능하더라 ~ (포스트맨은 명세나 api 테스트 자동화 도구로 괜찮음 좋음)

image
image
image
image

@parkcoldroad
Copy link
Contributor Author

@ImKunYoung 좋습니다! 인스턴스 합치는 것과 API 자동화하는 부분 둘 다 회의 때 자세히 얘기해봅시다!

@parkcoldroad parkcoldroad self-assigned this Sep 21, 2023
@ansm6358
Copy link
Collaborator

오케이

@parkcoldroad parkcoldroad merged commit a8e29f5 into dev Sep 22, 2023
1 check passed
@ImKunYoung ImKunYoung deleted the feat/add-product-introduction branch October 25, 2023 06:31
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.

(관리자)상품 소개 관리 추가 - 백엔드
3 participants