Greetings all,
I have started looking into Apache Nifi. I was interested in using the
Rest API and after I started my instance of Nifi, I wanted to test it.
My Nifi is located at localhost:8080/nifi. I am using Rest Web Service
Client on Chrome
I set the method to GET and the URL to
http://localhost:8080/nifi/controller/about
I think this is a good rest call to use since the Authorization is Ready
Only and the data shouldn't be anything critical.
I get the the following response:
404, Not Found
Date: Wed, 02 Sep 2015 15:08:44 GMT
Cache-Control: must-revalidate,no-cache,no-store,
must-revalidate,no-cache,no-store
X-UA-Compatible: IE=edge
Server: Jetty(9.2.11.v20150529)
Content-Length: 305
Content-Type: text/html; charset=ISO-8859-1
*Time taken*(in milliseconds): 52
Mind you, I don't have any users entered into Nifi's user list. This is
currently just a barebones Nifi instance.
I don't know why the response contains IE=edge as I do not have that
software on my Mac.
Is the path I entered for URL incorrect? Then I set the URL to
http://localhost:8080/controller/about
and it returned a response code of 200, however in the Raw Response I
got the following message about mistyping and recommending I add "/nifi"
to the path:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="../nifi/images/nifi16.ico"/>
<title>NiFi</title>
<link href="/nifi/css/message-pane.css" rel="stylesheet" type="text/css" />
<link href="/nifi/css/message-page.css" rel="stylesheet" type="text/css" />
</head>
<body class="message-pane">
<div class="message-pane-message-box">
<p class="message-pane-title">
Did you mean: <a href="/nifi/">/nifi</a>
</p>
<p class="message-pane-content">You may have mistyped...</p>
</div>
</body>
</html>