-
Notifications
You must be signed in to change notification settings - Fork 2
견적 생성
Daewook.Choi edited this page Feb 4, 2025
·
4 revisions
견적 생성
POST : /api/estimates
Content-Type: application/json
Authorization: Bearer <access_token>
params | Example | Description | Default |
---|---|---|---|
None | None | None | None |
Key | Example | Description | Default |
---|---|---|---|
estimateRequestId:Integer(Required) | 1 | 견적 요청 ID | --- |
sellerId:Integer(Required) | 2 | 판매자 ID | --- |
totalPrice:Integer(Required) | 5000000 | 총 금액 | --- |
createDate:DateTime(Required) | "2024-01-25T10:00:00Z" | 생성 날짜 | --- |
exmaple
{
"estimateRequestId" : 1,
"sellerId" : "zxc123",
"items" : [
{
"categorie" : "CPU",
"item" : "Intel i5-13500k",
"price" : 135000
},
{
"categorie" : "메인보드",
"item" : "MSI 박격포",
"price" : 199000
}
]
}
Success : 201
{
"success" : "1번 견적이 생성되었습니다."
}
잘못된 요청인 경우 : 400
{
"error": "입력한 내용을 다시 확인해주세요."
}
견적 요청이 존재하지 않을 때 : 404
{
"error": "견적 요청을 찾을 수 없습니다."
}
Server Error : 500
{
"error": "Internal Server Error"
}