+4
-2
@@ -162,8 +162,9 @@ message CartItem {
|
||||
int64 count = 10;
|
||||
int64 amount = 11;
|
||||
int64 amountOld = 12;
|
||||
repeated Variant variants = 13;
|
||||
repeated Label labels = 14;
|
||||
int64 discount = 13;
|
||||
repeated Variant variants = 14;
|
||||
repeated Label labels = 15;
|
||||
}
|
||||
|
||||
message CartReq {
|
||||
@@ -174,6 +175,7 @@ message CartRsp {
|
||||
repeated CartItem items = 1;
|
||||
int64 amount = 2;
|
||||
int64 amountOld = 3;
|
||||
int64 discount = 4;
|
||||
}
|
||||
|
||||
message GetImageReq {
|
||||
|
||||
+7
-2
@@ -1,13 +1,16 @@
|
||||
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
|
||||
content-type: application/json
|
||||
User-Agent: crabs/1.0.0
|
||||
Content-Type: application/json
|
||||
|
||||
[
|
||||
{
|
||||
@@ -23,7 +26,8 @@ content-type: application/json
|
||||
###
|
||||
|
||||
POST http://localhost:8090/orders
|
||||
content-type: application/json
|
||||
User-Agent: crabs/1.0.0
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"name": "Иванов Иван",
|
||||
@@ -43,3 +47,4 @@ content-type: application/json
|
||||
###
|
||||
|
||||
GET http://localhost:8090/search?text=Лимон
|
||||
User-Agent: crabs/1.0.0
|
||||
|
||||
Reference in New Issue
Block a user