空手道是否支持.avro文件作为输入请求? [英] Do Karate support .avro file as an input request?

查看:63
本文介绍了空手道是否支持.avro文件作为输入请求?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个要求,我们需要将.avro文件作为输入请求发送到我们的API.确实停留在这一点上.如果提供了任何详细的示例,将不胜感激.

We have a requirement where we need to send .avro file as an input request to our API's. Really stuck at this point. If any detail example provided would be more appreciated.

推荐答案

只需使用Java互操作即可:https://github.com/intuit/karate#calling-java

Just use Java interop: https://github.com/intuit/karate#calling-java

您需要编写一个帮助程序(从静态方法开始)以将JSON转换为Avro,反之亦然.我知道团队将其用于gRPC.阅读此主题以获取提示: https://github.com/intuit/karate/issues/412

You need to write a helper (start with a static method) to convert JSON to Avro and vice versa. I know teams using this for gRPC. Read this thread for tips: https://github.com/intuit/karate/issues/412

甚至还有一个"karate-grpc".项目: https://github.com/pecker-io/karate-grpc

Also there is even a "karate-grpc" project: https://github.com/pecker-io/karate-grpc

这篇关于空手道是否支持.avro文件作为输入请求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆