Skip to content

Commit

Permalink
✅ 카테고리별 조회, 상품 상태별 조회 호출 테스트 추가 (#27)
Browse files Browse the repository at this point in the history
- category_id, status 파라미터

Related to: #27
  • Loading branch information
jun108059 committed Feb 7, 2023
1 parent 84b801e commit c0c6589
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions http/product.http
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,32 @@ Authorization: Bearer {{TOKEN}}

### 상품 검색 API
GET http://localhost:8081/api/v1/product/search?word=당근
Authorization: Bearer {{TOKEN}}

### 상품 등록 API 4
POST http://localhost:8081/api/v1/product
Content-Type: application/json
Authorization: Bearer {{TOKEN}}

{
"title": "카테고리 필터 테스트를 해볼거야",
"areaId": "1",
"categoryId": "3",
"price": 470,
"content": "카테고리 3",
"imageList": [
"https://pds.joongang.co.kr/news/component/htmlphoto_mmdata/201708/05/b313969a-a073-4665-a721-8af77dc1df39.jpg"
]
}

### 상품리스트 조회 (카테고리별 조회)
GET http://localhost:8081/api/v1/product/list?category_id=1
Authorization: Bearer {{TOKEN}}

### 상품리스트 조회 (상품 상태별 조회)
GET http://localhost:8081/api/v1/product/list?status=TRADING
Authorization: Bearer {{TOKEN}}

### 상품리스트 조회 (상품 상태별 조회 2)
GET http://localhost:8081/api/v1/product/list?status=RESERVED
Authorization: Bearer {{TOKEN}}

0 comments on commit c0c6589

Please sign in to comment.