update tests and deps for micro http client/server

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2021-10-27 13:17:06 +03:00
parent a6b5ee450f
commit bb75d12542
6 changed files with 145 additions and 75 deletions

View File

@@ -60,8 +60,8 @@ service Test {
//option (micro.api.micro_service) = { client_wrappers: ["one","two"]; };
rpc Call(CallReq) returns (CallRsp) {
option (micro.openapiv3.openapiv3_operation) = {
operation_id: "Call";
option (micro.openapiv3.openapiv3_operation) = {
operation_id: "Call";
responses: {
default: {
reference: {
@@ -69,7 +69,31 @@ service Test {
};
};
};
};
parameters: {
parameter: {
name: "Clientid";
in: "header";
schema: {
schema: {
type: "string";
};
};
required: true;
};
};
parameters: {
parameter: {
name: "Csrftoken";
in: "cookie";
schema: {
schema: {
type: "string";
};
};
required: true;
};
};
};
option (micro.api.http) = { post: "/v1/test/call/{name}"; body: "*"; };
option (micro.api.micro_method) = { timeout: 5; };
};
@@ -97,6 +121,8 @@ message CallReq {
Nested nested = 5;
repeated string string_ids = 6;
repeated int64 int64_ids = 7;
string Clientid = 8;
string Csrftoken = 9;
};
message Nested {