如何像在REST中一样实现GRPC调用?

我有一个.proto文件, 该项目的pb2和pb2_grpc文件。我如何才能实现类似REST的API测试之类的功能, 从而能够仅通过python中带有参数的方法来调用grpc请求?我见过像pytest-grpc, tavern-grpc这样的python模块, 但我仍然不知道如何实现它。例如我采用这种开源方案https://github.com/dialogs/api-schema

https://dialogs.github.io/api-schema/

来源:

https://www.srcmini02.com/57980.html

微信公众号
手机浏览(小程序)
0
分享到:
没有账号? 忘记密码?