invokeHTTP中“将响应主体放入属性"的属性名称 [英] Name of attribute for “Put Response Body In Attribute” in invokeHTTP
本文介绍了invokeHTTP中“将响应主体放入属性"的属性名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个端点将按如下方式返回响应.
I have a endpoint would return response as follow.
{
"result": [
{},
....
{}]
}
我正在尝试使用invokeHTTP并启用在属性中放入响应正文"以保留来自api的原始流文件和响应.
I am trying to use invokeHTTP and enable "Put Response Body In Attribute" to keep origin flowfile and response from api.
但似乎添加了一个名为$ .result的属性,如下所示:
but it seems add a attribute named $.result as follow
是否可以为result属性设置一个适当的名称?谢谢.
Is there any way to set a proper name for result attribute ? Thanks.
推荐答案
您尝试使用JSON路径提取结果.但是,这在InvokeHttp中是不可能的.您可能要使用
You try to extract results using a JSON path. However this is not possible from within InvokeHttp. You may want to use EvaluateJsonPath processor.
查看全文