@@ -48,6 +48,11 @@ service CRM {
|
||||
get: "/images/{name}"
|
||||
};
|
||||
}
|
||||
rpc Search(SearchReq) returns (PositionsRsp) {
|
||||
option (google.api.http) = {
|
||||
get: "/search"
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
message GetCatalogReq {}
|
||||
@@ -174,3 +179,7 @@ message CartRsp {
|
||||
message GetImageReq {
|
||||
string name = 1;
|
||||
}
|
||||
|
||||
message SearchReq {
|
||||
string text = 1;
|
||||
}
|
||||
|
||||
@@ -31,3 +31,7 @@ content-type: application/json
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
###
|
||||
|
||||
GET http://localhost:8090/search?text=Лимон
|
||||
|
||||
Reference in New Issue
Block a user