cake_crm/api/request.http

46 lines
563 B
HTTP
Raw 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
###
GET http://localhost:8090/products/1
###
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
}
]
}
###
GET http://localhost:8090/search?text=Лимон