title: Call nifi processor as a rest api
body: <p>I want to call a Nifi custom processor as a REST Api and pass the parameters at run-time through pyspark. And retrieve the results in the response object.
  Can anyone please help me in suggesting different approaches for the same.</p>