title: Apache Nifi, how to get JSON from API
body: <p>I've started using Apache Nifi and I'm still learning it and experimenting with it. I really want to use Nifi to get JSON documents from API's and put them in my Elasticsearch database. So far using the built-in getTwitter and putElasticsearch controllers this works.</p>
  
  <p>However now I want to do this with other APIs than Twitter, and I'm kinda stuck here. First off I really don't even know which controller to use? I would think getHttp or invokeHttp even with 'GET' as http verb then but it doesn't seem to work. If I use the getHttp I have to give an SSL service with keystore and truststore .. like why would I have to do that? </p>
  
  <p>Apache Nifi is still quite new so hard to find decent guides / information about these kinds of things. I have read and searched the documentation but haven't gotten the wiser.</p>
  
  <p>An example JSON to pick up from an API is:</p>
  
  <p><a href="https://api.ssllabs.com/api/v2/getEndpointData?host=www.bnpparibasfortis.be&amp;s=193.58.4.82" rel="nofollow">https://api.ssllabs.com/api/v2/getEndpointData?host=www.bnpparibasfortis.be&amp;s=193.58.4.82</a></p>
  
  <p>Thanks in advance for anyone that can offer some help / insight.</p>