51 lines
683 B
HTTP
51 lines
683 B
HTTP
GET http://localhost:8090/catalog
|
||
User-Agent: crabs/1.0.0
|
||
|
||
###
|
||
|
||
GET http://localhost:8090/products/1
|
||
User-Agent: crabs/1.0.0
|
||
|
||
###
|
||
|
||
POST http://localhost:8090/cart
|
||
User-Agent: crabs/1.0.0
|
||
Content-Type: application/json
|
||
|
||
[
|
||
{
|
||
"product_id": 1,
|
||
"count": 7
|
||
},
|
||
{
|
||
"product_id": 20,
|
||
"count": 15
|
||
}
|
||
]
|
||
|
||
###
|
||
|
||
POST http://localhost:8090/orders
|
||
User-Agent: crabs/1.0.0
|
||
Content-Type: application/json
|
||
|
||
{
|
||
"name": "Иванов Иван",
|
||
"phone": "+7-000-000-00-00",
|
||
"items": [
|
||
{
|
||
"product_id": 1,
|
||
"count": 7
|
||
},
|
||
{
|
||
"product_id": 20,
|
||
"count": 15
|
||
}
|
||
]
|
||
}
|
||
|
||
###
|
||
|
||
GET http://localhost:8090/search?text=Лимон
|
||
User-Agent: crabs/1.0.0
|