maryem neyli
maryem neyli

Reputation: 455

How to use InvokeHttp to Rest Api(POST)

Good Morning everyone So I need to invoke a POST REST API using Apache Nifi so I configured it: nifi project structure InvokeHttp configuration for POST InvokeHttp configuration for POST and I need to know if it is working or no! How can I do it? Is my configuration is right or not? Thank you

Upvotes: 0

Views: 989

Answers (1)

aswath86
aswath86

Reputation: 571

You don't need the SSL Context Service because the service you are trying to call is not SSL enabled. So remove that.

Your Put Response Body in Attribute is incorrect. This is the name of the attribute that will hold the response that is received from the API call.

You need a trigger processor like GenerateFlowFile to activate your InvokeHTTP.

Feel free to edit my answer if you did more to fix your issue so we could correctly document it here.

Upvotes: 1

Related Questions