New Function #40
closedNew Function #32: [API] API for mobile App
[API] Product
Description
1.Git
- KORAIL_STORE/korail_store_user
2.Swagger UI (https://swagger.io/tools/swagger-ui/)
- apply this into API
3.Spec (Product sheet on #32)
- 상품 상세정보 조회 (product Info)
- 상품 리뷰 리스트 (product review list)
- 상품 문의 리스트 (product qna list)
- 상품 문의 등록 (register product qna)
- 상품 문의 삭제 (delete produt qna)
- 관심 상품 리스트 (interest product list)
- 관심 상품 등록 (add interest product)
- 관심 상품 삭제 (delete interest product)
- 장바구니 상품 리스트 (cart product list)
- 장바구니 상품 추가 (add cart product)
- 장바구니 상품 삭제 (delete cart product)
Files
Related issues
Updated by Deca Park almost 2 years ago
- Copied from New Function #39: [API] Mall added
Updated by Deca Park almost 2 years ago
- Assignee changed from Toby Pham to jason jason
Updated by Deca Park almost 2 years ago
- Subject changed from [API] Mall Product to [API] Product
- Status changed from New to Feedback
[Spec change] - Product sheet on #32
1.상품 카테고리 리스트 (product category list) : Change
2 상품 정보 (product Info) : Change
상품 리뷰 리스트 (product review list) : move to Review&Recommend sheet
9.장바구니 상품 리스트 Change
10.장바구니 상품 추가 Change
Updated by Deca Park almost 2 years ago
- Copied to New Function #41: [API] Review&Recommend added
Updated by jason jason almost 2 years ago
- Status changed from Feedback to Resolved
- Assignee changed from jason jason to Deca Park
Updated by Deca Park over 1 year ago
[Test Issues]
1.GET /api/product_category_list
1) logic
- apply sort: category_code ASC
2.GET /api/mall_product
1) change URL
/api/mall_product -> /api/product_info
2) Response
a) event_yn : Add
3.GET /api/product_qna_list
- although data exists, data is not searched (test id: dev01, product_code: PD001)
- if error_code is "common.error.dataNotExist", set status by 404 (currently, 400 is set wrong)
4-1.POST /api/cart_product
1) Parameter
- add product_count (Integer : 상품건수)
2) process
- if user's product_code was already registered, UPDATE product_count after plus product_count param
4-2.POST /api/interest_product
- add product_code condition into search SQL
- if user's product_code was aleady registered, return error (status: 400, error_code: "common.error.alreadyRegistered" : "이미 등록되었습니다.")
5.POST /api/product_qna
1) Paramter
- set description (refer to Product sheet on #32)
2) process
- 400 error hapens (id: dev01, product_code: PD001, question_type: QT0102)
Updated by Deca Park over 1 year ago
- Status changed from Resolved to Feedback
- Assignee changed from Deca Park to Toby Pham
Updated by Toby Pham over 1 year ago
- Status changed from Feedback to Resolved
- Assignee changed from Toby Pham to Deca Park
Updated by Deca Park over 1 year ago
[API] POST /api/product_qna
1.Logic
1) when INSERT st_qna
- qna_type : "QA01"
- mall_code : set by st_product.mall_code (NEW)
2.currently, error happens (fix)
Updated by Deca Park over 1 year ago
- Status changed from Resolved to Feedback
- Assignee changed from Deca Park to bryant bryant
Updated by Deca Park over 1 year ago
[API] 장바구니 상품 수량 변경 (update cart product count) (ADD)
- PUT /api/cart_product
- Product sheet on #32 (20230620)
Updated by bryant bryant over 1 year ago
- Status changed from Feedback to Resolved
- Assignee changed from bryant bryant to Deca Park
Updated by Deca Park over 1 year ago
[API] POST /api/cart_product
- 400 error happen (refer to attach image)
Updated by Deca Park over 1 year ago
- File cart_error_1.png cart_error_1.png added
Updated by Deca Park over 1 year ago
[API] GET /api/mall_product
1.Parameter
1) id (Add)
2.Response
1) interest_yn (Add)
a) if id param is empty
- set by 'N'
b) else
b-1) if the product_code is user's interest product, set by 'Y'
[Logic]
DB : st_product_interest
conditions: product_code = {the product_code} AND reg_user_seq = {user_seq of id param}
b-2) else set by 'N'
Updated by Deca Park over 1 year ago
- Status changed from Resolved to Feedback
- Assignee changed from Deca Park to Toby Pham
Updated by Toby Pham over 1 year ago
- Status changed from Feedback to Resolved
- Assignee changed from Toby Pham to Deca Park