34 lines
425 B
HTTP
34 lines
425 B
HTTP
POST http://localhost:8090/cart
|
||
content-type: application/json
|
||
|
||
[
|
||
{
|
||
"product_id": 1,
|
||
"count": 7
|
||
},
|
||
{
|
||
"product_id": 20,
|
||
"count": 15
|
||
}
|
||
]
|
||
|
||
###
|
||
|
||
POST http://localhost:8090/orders
|
||
content-type: application/json
|
||
|
||
{
|
||
"name": "Иванов Иван",
|
||
"phone": "+7-000-000-00-00",
|
||
"items": [
|
||
{
|
||
"product_id": 1,
|
||
"count": 7
|
||
},
|
||
{
|
||
"product_id": 20,
|
||
"count": 15
|
||
}
|
||
]
|
||
}
|