sinkyoungdeok / order-and-gift-project Goto Github PK
View Code? Open in Web Editor NEW지금까지 배웠던 기술들을 다듬을겸 주문&선물 프로젝트를 진행합니다
지금까지 배웠던 기술들을 다듬을겸 주문&선물 프로젝트를 진행합니다
POST http://localhost:18080/api/v1/gifts/gt_1mF8Py1k0yrnDSP85/payment-processing
Content-Type: application/json
GET http://localhost:18080/api/v1/gifts/gt_PoN5w7udsGLS7l1qk
Content-Type: application/json
POST http://localhost:18080/api/v1/gifts/
Content-Type: application/json
{
"buyerUserId": "12345",
"payMethod": "TOSS_PAY",
"pushType": "KAKAO",
"giftReceiverName": "이기쁨",
"giftReceiverPhone": "01000001111",
"giftMessage": "기쁨아 사랑해",
"orderItemList": [
{
"orderCount": 1,
"itemToken": "itm_5e2OwXwjlaU1diDW",
"itemName": "티셔츠",
"itemPrice": "30000",
"orderItemOptionGroupList": [
{
"ordering": 1,
"itemOptionGroupName": "사이즈",
"orderItemOptionList": [
{
"ordering": 1,
"itemOptionName": "MEDIUM",
"itemOptionPrice": 0
}
]
},
{
"ordering": 2,
"itemOptionGroupName": "컬러",
"orderItemOptionList": [
{
"ordering": 1,
"itemOptionName": "GOLD",
"itemOptionPrice": 1000
}
]
}
]
},
{
"orderCount": 1,
"itemToken": "itm_kAyI718RmReYl6IU",
"itemName": "양말",
"itemPrice": "10000",
"orderItemOptionGroupList": [
{
"ordering": 1,
"itemOptionGroupName": "사이즈",
"orderItemOptionList": [
{
"ordering": 1,
"itemOptionName": "LARGE",
"itemOptionPrice": 0
}
]
},
{
"ordering": 2,
"itemOptionGroupName": "컬러",
"orderItemOptionList": [
{
"ordering": 1,
"itemOptionName": "RED",
"itemOptionPrice": 0
}
]
}
]
}
]
}
POST http://localhost:8080/api/v1/items/change-end-of-sales
Content-Type: application/json
{
"itemToken": "itm_qCPGVzwvLVmCoZs6"
}
GET http://localhost:8080/api/v1/items/itm_lnTOhyzZcBheBsce
Content-Type: application/json
POST http://localhost:8080/api/v1/items/change-on-sales
Content-Type: application/json
{
"itemToken": "itm_qCPGVzwvLVmCoZs6"
}
POST http://localhost:8080/api/v1/orders/payment-order
Content-Type: application/json
{
"orderToken": "ord_asb8h7EDsTScWQaG",
"payMethod": "NAVER_PAY",
"amount": "72000",
"orderDescription": "주문테스트"
}
POST http://localhost:8080/api/v1/gift-orders/payment-order
Content-Type: application/json
{
"orderToken": "ord_LBGtSsrQL3AUYCag",
"payMethod": "TOSS_PAY",
"amount": "41000",
"orderDescription": "선물하기 주문"
}
POST http://localhost:18080/api/v1/gifts/gt_1mF8Py1k0yrnDSP85/accept-gift
Content-Type: application/json
{
"receiverName": "그렉",
"receiverPhone": "01000001111",
"receiverZipcode": "123123",
"receiverAddress1": "서울시 강동구",
"receiverAddress2": "우리집",
"etcMessage": "감사합니다!"
}
POST http://localhost:8080/api/v1/items
Content-Type: application/json
{
"partnerToken": "ptn_ifqed5LiPmolNKfc",
"itemName": "티셔츠",
"itemPrice": 30000,
"itemOptionGroupList": [
{
"ordering": "1",
"itemOptionGroupName": "사이즈",
"itemOptionList": [
{
"ordering": 1,
"itemOptionName": "SMALL",
"itemOptionPrice": 0
},
{
"ordering": 2,
"itemOptionName": "MEDIUM",
"itemOptionPrice": 0
},
{
"ordering": 3,
"itemOptionName": "LARGE",
"itemOptionPrice": 0
}
]
},
{
"ordering": "2",
"itemOptionGroupName": "컬러",
"itemOptionList": [
{
"ordering": 1,
"itemOptionName": "RED",
"itemOptionPrice": 0
},
{
"ordering": 2,
"itemOptionName": "GOLD",
"itemOptionPrice": 1000
}
]
}
]
}
POST http://localhost:8080/api/v1/partners
Content-Type: application/json
{
"partnerName": "테스트",
"businessNo": "1234123456",
"email": "[email protected]"
}
POST http://localhost:8080/api/v1/orders/init
Content-Type: application/json
{
"userId": "12345",
"payMethod": "NAVER_PAY",
"receiverName": "이희창",
"receiverPhone": "01000001234",
"receiverZipcode": "12345",
"receiverAddress1": "서울시 강동구",
"receiverAddress2": "우리집",
"etcMessage": "감사합니다",
"orderItemList": [
{
"orderCount": 2,
"itemToken": "itm_5e2OwXwjlaU1diDW",
"itemName": "티셔츠",
"itemPrice": "30000",
"orderItemOptionGroupList": [
{
"ordering": 1,
"itemOptionGroupName": "사이즈",
"orderItemOptionList": [
{
"ordering": 1,
"itemOptionName": "MEDIUM",
"itemOptionPrice": 0
}
]
},
{
"ordering": 2,
"itemOptionGroupName": "컬러",
"orderItemOptionList": [
{
"ordering": 1,
"itemOptionName": "GOLD",
"itemOptionPrice": 1000
}
]
}
]
},
{
"orderCount": 1,
"itemToken": "itm_kAyI718RmReYl6IU",
"itemName": "양말",
"itemPrice": "10000",
"orderItemOptionGroupList": [
{
"ordering": 1,
"itemOptionGroupName": "사이즈",
"orderItemOptionList": [
{
"ordering": 1,
"itemOptionName": "LARGE",
"itemOptionPrice": 0
}
]
},
{
"ordering": 2,
"itemOptionGroupName": "컬러",
"orderItemOptionList": [
{
"ordering": 1,
"itemOptionName": "RED",
"itemOptionPrice": 0
}
]
}
]
}
]
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.