Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

NIFI calling GET API's calls

NIFI calling GET API's calls

Explorer

Hi Team,

 

I would like to do few types of API (HTTPS) calls that takes inputs like Authorization header (or) Username/Password for authentication and gives a json body as output.

 

Can you please suggest me the correct processor and steps to make this call and generate a flow that will hav the json body as content.

1 REPLY 1
Highlighted

Re: NIFI calling GET API's calls

Cloudera Employee

Hello @s_jayashree 

 

You can use the NiFi GetHTTP processor - https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.6.0/org.apache...

 

This processor allows you to specify dynamic properties which can be used to send headers.

 

The output of the processor on success can then be routed wherever you would like.

 

You can see some examples of this processor in use here: https://ddewaele.github.io/http-communication-with-apache-nifi/

Don't have an account?
Coming from Hortonworks? Activate your account here