update tests and deps for micro http client/server
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user