Project

General

Profile

Actions

New Function #40

closed

New Function #32: [API] API for mobile App

[API] Product

Added by Deca Park over 1 year ago. Updated 8 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Start date:
04/18/2023
Due date:
% Done:

0%

Estimated time:
Spent time:

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

cart_error_1.png (57.9 KB) cart_error_1.png Deca Park, 06/21/2023 01:09 PM

Related issues

Copied from New Function #39: [API] MallClosedDeca Park04/18/2023

Actions
Copied to New Function #41: [API] Review&RecommendClosedDeca Park04/18/2023

Actions
Actions #1

Updated by Deca Park over 1 year ago

Actions #2

Updated by Deca Park over 1 year ago

  • Assignee changed from Toby Pham to jason jason
Actions #3

Updated by Deca Park over 1 year 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

Actions #4

Updated by Deca Park over 1 year ago

Actions #5

Updated by jason jason over 1 year ago

  • Status changed from Feedback to Resolved
  • Assignee changed from jason jason to Deca Park
Actions #6

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)

Actions #7

Updated by Deca Park over 1 year ago

  • Status changed from Resolved to Feedback
  • Assignee changed from Deca Park to Toby Pham
Actions #8

Updated by Toby Pham over 1 year ago

  • Status changed from Feedback to Resolved
  • Assignee changed from Toby Pham to Deca Park
Actions #9

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)

Actions #10

Updated by Deca Park over 1 year ago

  • Status changed from Resolved to Feedback
  • Assignee changed from Deca Park to bryant bryant
Actions #11

Updated by Deca Park over 1 year ago

[API] 장바구니 상품 수량 변경 (update cart product count) (ADD)

  • PUT /api/cart_product
  • Product sheet on #32 (20230620)
Actions #12

Updated by bryant bryant over 1 year ago

  • Status changed from Feedback to Resolved
  • Assignee changed from bryant bryant to Deca Park
Actions #13

Updated by Deca Park about 1 year ago

[API] POST /api/cart_product

  • 400 error happen (refer to attach image)
Actions #15

Updated by Deca Park about 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'   

Actions #16

Updated by Deca Park about 1 year ago

  • Status changed from Resolved to Feedback
  • Assignee changed from Deca Park to Toby Pham
Actions #17

Updated by Toby Pham about 1 year ago

  • Status changed from Feedback to Resolved
  • Assignee changed from Toby Pham to Deca Park
Actions #18

Updated by Deca Park 8 months ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF