I need to send the following GET request with JSON to https://www.example.com/api/
GET /path/to/data
{
"abcd": [
"a1",
"a2"
]
}
Which is encoded in URL in such a way: https://www.example.com/api/path/to/data?json=%8B%0B%+.....
I tried to accomplish this request via these two NiFi flows:
GenerateFlowFile -> ReplaceText -> UpdateAttribute -> InvokeHTTP -> PutFile
GenerateFlowFile -> UpdateAtribute -> AttributeToJSON -> InvokeHTTP -> PutFile
However, I fail to send the JSON with the request. Could you please give me a hint on how to configure these processors or suggest a different NiFi flow? (I also need to use Basic Authentication, that's the reason why I use InvokeHTTP processor)
Thank you in advance for any replies.