Support Questions

Find answers, ask questions, and share your expertise

How to pull data from Rest API post url to NiFi

avatar
Rising Star

Hi,

We have data in Rest API. I can able to get json data using Post method in postman rest client. I want to process data in nifi from this rest url;

For example
POST : localhost:8484/api/cloud/list_users
is_user : xxx
is_key :p3231oi3	
1 ACCEPTED SOLUTION

avatar
Guru

Hi @Narasimma varman

the InvokeHTTP Processor in NiFi can be used. More on the InvokeHTTP processor here: https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.2.0/org.apache...

In fact, there is a good tutorial walking through how to get data from an API endpoint here: https://hortonworks.com/hadoop-tutorial/learning-ropes-apache-nifi/#section_5

As always, if you find this source useful, please accept the answer.

View solution in original post

5 REPLIES 5

avatar
Guru

Hi @Narasimma varman

the InvokeHTTP Processor in NiFi can be used. More on the InvokeHTTP processor here: https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.2.0/org.apache...

In fact, there is a good tutorial walking through how to get data from an API endpoint here: https://hortonworks.com/hadoop-tutorial/learning-ropes-apache-nifi/#section_5

As always, if you find this source useful, please accept the answer.

avatar
Rising Star

Thanks Sonu Sahi

avatar
Rising Star

Can you tell me where I can declare key and value in invokehttp processor

avatar
Master Guru

You can add dynamic properties in the InvokeHttp processor's configuration dialog as described here.

avatar
Rising Star

Thanks Matt Burgess