cake_crm/api/request.http

57 lines
758 B
HTTP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

GET http://localhost:8090/catalog
User-Agent: crabs/1.0.0
###
# prod
GET http://cake-api.3crabs.ru/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