- 인증
- 캠페인
- 이미지
- 상품
- 주문/거래 내역
- 포인트
- 거래
POST /auth/login
Param | type | desc |
---|---|---|
string | 유저 계정 이메일 | |
password | string | 비밀번호 |
response
Param | success | fail |
---|---|---|
message | 성공 메시지 | 실패 이유 |
user | user email/type | null |
POST /auth/join
Param | type | desc |
---|---|---|
name | string | 유저 이름 |
string | 유저 계정 이메일 | |
password | string | 비밀번호 |
type | string | normaml /seller / charity |
response
Param | success | fail |
---|---|---|
message | 성공 메시지 | 실패 이유 |
GET auth/logout
POST campaign/register
Param | type | desc |
---|---|---|
name | string | 캠페인 이름 |
dest_money | integer | 모금 목표 금액 |
content | string | 캠페인 내용 |
due_day | timestamp | 기부 마감일 |
title_img | string | img를 동록하고 받은 url |
GET campaign/myCampaigns/:status
status | desc |
---|---|
end | 완료된 |
ing | 진행중 |
GET campaign/campaigns/:status
status | desc |
---|---|
end | 완료된 |
ing | 진행중 |
GET /campaign/detail/:id
POST /img
Param | type | desc |
---|---|---|
img | file | 이미지 파일 |
Response
{
url : "uploads/filename"
}
POST /item/register
Param | type | desc |
---|---|---|
name | string | 상품 이름 |
content | string | 상품 설명 |
price | integer | 가격 |
stock | integer | 재고 |
title_img | string | img를 동록하고 받은 url |
GET /item/detail/:id
GET /item/myItems
GET /item/items
GET /tradLog/myOrders
GET /tradeLog/orderDetail/:id
/tradeLog/myDonations/:status
status | desc |
---|---|
end | 완료 캠페인 |
ing | 진행중 캠페인 |
GET /tradeLog/ordersByCampaign
GET /tradeLog/donationsByCampaign/:id
POST /point/buy
Param | type | desc |
---|---|---|
value | integer | 충전 금액 |
POST /point/change
Param | type | desc |
---|---|---|
value | integer | 환전 금액 |
GET /point
POST /campaign/donate
Param | type | desc |
---|---|---|
campaignId | integer | 기부할 캠페인의 id |
value | integer | 기부 할 금액 |
POST /item/buy
Param | type | desc |
---|---|---|
itemId | integer | 구매할 상품의 id |
orderCount | integer | 주문 량 |
campaignId | integer | 모금액을 차감할 캠페인 id |
addr | string | 배송지 |