cake_crm/api/request.http

34 lines
425 B
Plaintext
Raw Normal View History

2024-05-29 20:54:12 +00:00
POST http://localhost:8090/cart
2024-05-29 20:24:20 +00:00
content-type: application/json
[
{
"product_id": 1,
"count": 7
2024-05-29 20:54:12 +00:00
},
{
"product_id": 20,
"count": 15
2024-05-29 20:24:20 +00:00
}
]
2024-05-29 20:34:04 +00:00
###
POST http://localhost:8090/orders
content-type: application/json
{
"name": "Иванов Иван",
"phone": "+7-000-000-00-00",
"items": [
{
"product_id": 1,
"count": 7
2024-05-29 20:54:12 +00:00
},
{
"product_id": 20,
"count": 15
2024-05-29 20:34:04 +00:00
}
]
}