Name of attribute for “Put Response Body In Attribute” in invokeHTTP

后端 未结 1 938
面向向阳花
面向向阳花 2021-01-29 04:17

I have a endpoint would return response as follow.

{
   \"result\": [
   {},
   ....
   {}]
}

I am trying to use invokeHTTP and enable “Put Re

相关标签:
1条回答
  • 2021-01-29 05:06

    You try to extract results using a JSON path. However this is not possible from within InvokeHttp. You may want to use EvaluateJsonPath processor.

    Documentation for Put Response Body In Attribute:

    If set, the response body received back will be put into an attribute of the original FlowFile instead of a separate FlowFile. The attribute key to put to is determined by evaluating value of this property.

    To keep the original flow file after calling InvokeHttp, you can move it to an attribute (if the content is small enough) just before calling InvokeHttp or you can use MergeContent with original flow file and response flow file from InvokeHttp.

    0 讨论(0)
提交回复
热议问题