POST http://localhost:3000/products/bidding/give-up/2 Content-Type: application/json Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OCwibmlja25hbWUiOiJURVNUMTIzNCIsInBhc3N3b3JkIjoic2hhNTEyOjRtcHhYWkpqR3FsV0xvR3o3QjVrcjRPYjhJVXNEYXY1QlNoRWZtQVcySnc9OjIxODE1NDo2NDpkbEplOGZCUlRNNFpIYjZkU21KN0YxbjUvQXQwbFgydVl6OGgyVTF5bkd1WEI4Q29EeHZSQlJnRlhkdzdlbXRaQWZiR1MvSkphY0JVTzlQSDVxKzhUZz09IiwiaWF0IjoxNzA1MDM3MDMwLCJleHAiOjE3MDUwNDA2MzB9.Opf2lOdz6SbI8d-U1L35wmtLCBnYyJ_8b7uRRXdL2sU
### bidding POST http://localhost:3000/products/bidding/2 Content-Type: application/json Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OCwibmlja25hbWUiOiJURVNUMTIzNCIsInBhc3N3b3JkIjoic2hhNTEyOjRtcHhYWkpqR3FsV0xvR3o3QjVrcjRPYjhJVXNEYXY1QlNoRWZtQVcySnc9OjIxODE1NDo2NDpkbEplOGZCUlRNNFpIYjZkU21KN0YxbjUvQXQwbFgydVl6OGgyVTF5bkd1WEI4Q29EeHZSQlJnRlhkdzdlbXRaQWZiR1MvSkphY0JVTzlQSDVxKzhUZz09IiwiaWF0IjoxNzA1MDM3MDMwLCJleHAiOjE3MDUwNDA2MzB9.Opf2lOdz6SbI8d-U1L35wmtLCBnYyJ_8b7uRRXdL2sU
POST http://localhost:3000/tags Content-Type: application/json Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6Miwibmlja25hbWUiOiJSSU5PIEtBTkciLCJwYXNzd29yZCI6InNoYTUxMjovMW8wQkhrQVM3a0tIdlVnTVEwSSt2R016Ums0THNiQ3U0ZzZSek9PM01zPToyMTE4NDk6NjQ6L1k2eG5PRitnb0ljUW9odjdBbnZhZ0VNNmpjUEp2VGVCbGx4aFZzTzRSVkE5R3JEaE5PU0ZWRUdzRkJhM2VYemd6T3VZSmZLTmFLall3QnVmTEp6L2c9PSIsImlhdCI6MTcwNTAyNTE5MSwiZXhwIjoxNzA1MDI4NzkxfQ.oh-BDJQ_80nl2rKqBs_HhNzQEc91v0pjX5S5Z9rPIYE {
"productId": 1, "tag": ["good"]
}
### 회원가입 테스트 POST http://localhost:3000/auth/sign-up HTTP/1.1 Content-Type: application/json
- {
- "email": "hayeongparkkkk@naver.com", "nickname": "TEST1234", "password": "123455", "departmentId": 1
}
### 로그인 테스트
POST http://localhost:3000/auth/sign-in HTTP/1.1 Content-Type: application/json
{
"email": "ex2@ex.com", "password": "1234"
}
### 상품 목록 조회 테스트 GET http://localhost:3000/products HTTP/1.1 Content-Type: application/json
### 상품 등록 테스트 POST http://localhost:3000/products HTTP/1.1 Content-Type: application/json Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiZW1haWwiOiJoYXllb25ncGFya2tra0BuYXZlci5jb20iLCJuaWNrbmFtZSI6IlRFU1QxMjM0IiwiaWF0IjoxNzA1Mzg3NDk1LCJleHAiOjE3MDUzOTEwOTV9.etDCqYB43Yuo9RWQC41L1aLSD0RRpZmmdekYixl8Q3Q
- {
- "productName": "테스트 상품", "userId": 1, "desc": "이것은 테스트 상품의 설명입니다.", "status": "progress", "lowerBound": 1000, "upperBound": 5000, "imageId": 1, "tradingPlace": "서울시 강남구", "tradingTime": "2024-01-10T15:00:00", "department_id": 1
}
### 현재 사용자 정보 테스트
GET http://localhost:3000/users/current-user HTTP/1.1 Content-Type: application/json Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiZW1haWwiOiJoYXllb25ncGFya2tra0BuYXZlci5jb20iLCJuaWNrbmFtZSI6IlRFU1QxMjM0IiwiaWF0IjoxNzA1MzI2NjE5LCJleHAiOjE3MDUzMzAyMTl9.2TDzEemAO-R2PI105Kv8rH-RjBdzdmX3MBVB3tAN0qs
### 판매 중인 상품 확인
GET http://localhost:3000/users/current-user/product/buy?page=1&pageSize=5 HTTP/1.1 Content-Type: application/json Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiZW1haWwiOiJoYXllb25ncGFya2tra0BuYXZlci5jb20iLCJuaWNrbmFtZSI6IlRFU1QxMjM0IiwiaWF0IjoxNzA1Mzg3NDk1LCJleHAiOjE3MDUzOTEwOTV9.etDCqYB43Yuo9RWQC41L1aLSD0RRpZmmdekYixl8Q3Q ### 상품 상세정보 조회하기
GET http://localhost:3000/products/9 HTTP/1.1 Content-Type: application/json
### 상품 상세정보 수정하기
PATCH http://localhost:3000/products/87 HTTP/1.1 Content-Type: application/json Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwibmlja25hbWUiOiJURVNUMTIzNCIsInBhc3N3b3JkIjoic2hhNTEyOnpsUXlVZzNxVWI5MCt3dVFZeGlrc1pleCtNc3hlWG5mdFE4OUVkRDhzWE09OjIxMTk1Njo2NDpwRUtxMG56Y1RTNzRmU3BxYnhOT2lrcWhuNGtNV0psUzlDeCs5L3JySGR4RVpZWVdQS0ZvTElyVVFKaTduY2pTSHdmM1RDOEdLTmRDMmlhNWVXeTcvZz09IiwiaWF0IjoxNzA1MTQ3NTQ2LCJleHAiOjE3MDUxNTExNDZ9.rjiRFmOaACR8Qv-VVWXWTX1gb9k8X2bNF59e5KUDzOM
- {
- "productName": "Fitness Tracker_UPDATE", "upperBound": 80000, "imageId": 5, "desc": "track your fitness activities_UPDATE", "tradingPlace": "Sports Store", "tradingTime": "7 AM - 3 PM"
}
### 상품 상세정보 삭제하기
DELETE http://localhost:3000/products/84 HTTP/1.1 Content-Type: application/json Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OCwibmlja25hbWUiOiJURVNUMTIzNCIsInBhc3N3b3JkIjoic2hhNTEyOjRtcHhYWkpqR3FsV0xvR3o3QjVrcjRPYjhJVXNEYXY1QlNoRWZtQVcySnc9OjIxODE1NDo2NDpkbEplOGZCUlRNNFpIYjZkU21KN0YxbjUvQXQwbFgydVl6OGgyVTF5bkd1WEI4Q29EeHZSQlJnRlhkdzdlbXRaQWZiR1MvSkphY0JVTzlQSDVxKzhUZz09IiwiaWF0IjoxNzA1MDM4MjEzLCJleHAiOjE3MDUwNDE4MTN9.SVvhBByvpZ9-0enj2jiyvTBlP89CDs0zfd4F789kXes
### 상품 검색 GET http://localhost:3000/products HTTP/1.1 Content-Type: application/json
### 입찰하기 POST http://localhost:3000/products/bidding/9 HTTP/1.1 Content-Type: application/json Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MywiZW1haWwiOiJleDJAZXguY29tIiwibmlja25hbWUiOiJuaWNrMiIsImlhdCI6MTcwNTQ1NjI1MiwiZXhwIjoxNzA1NDU5ODUyfQ.-sVXy1kr2OLZbhRTPQMv1q5rUXqIjtJxXVPiJLcCyqQ
- {
- "biddingPrice": 18000
}