client/http: add additional tests

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2021-03-30 18:34:04 +03:00
parent 9c457a0c5e
commit d3a0375892
5 changed files with 86 additions and 13 deletions

View File

@@ -20,6 +20,20 @@ service Github {
};
option (micro.api.http) = { get: "/users/{username}"; };
};
rpc LookupUserWithoutPath(LookupUserReq) returns (LookupUserRsp) {
option (micro.openapiv2.openapiv2_operation) = {
operation_id: "LookupUserWithoutPath";
responses: {
key: "default";
value: {
description: "Error response";
schema: { json_schema: { ref: ".github.Error"; } }
}
}
};
option (micro.api.http) = { get: "/{username}"; };
};
};
message LookupUserReq {