I want to create a processor to make a simple Postcall , but it isnt clear on where the Raw body could be put in properties tab. Can anyone please help
Sample Url :http://echo.free.beeceptor.com/sample-request?author=beeceptor
Raw Body : {"name": "John Doe", "age": 30, "city": "New York"}
I tried both 1.2 and 2.x versions of Nifi
From InvokeHTTP processor documentation:
When the HTTP Method is PUT, POST or PATCH, the FlowFile contents are included as the body of the request and FlowFile attributes are converted to HTTP headers, optionally, based on configuration properties.
So body is not set in properties, but is rather got from the flow FlowFile. The FlowFile concept understanding is crucial for working with NiFi, but for the simplest POST call you can just put GenerateFlowFile processor before InvokeHTTP. There is a pretty good example of setup in How to convert a Postman request into a NiFi request?