I'm using the wso2 stream integrator in order to run my siddhi application. The operating environment is windows 10 pro. I'd like to ask you for your help about way of using Siddhi's REST API.
- Open a command prompt as the administrator and go to \wso2si-1.1.0\bin. Then, execute the command
server.bat --run
. - Deploy any siddhi files in wso2si-1.1.0\wso2\server\deployment\siddhi-files, and it's working correctly.
- Open a new command prompt and execute the command
curl -X GET "http://localhost:9090/siddhi-apps" -H "accept: application/json" -u "admin:admin" -k
. - The command succeeds and a list of applications is displayed.
- Next, I defined the
ABC
as named-window onFlowApp
and executed the commandcurl -X POST "https://localhost:9443/query" -H "content-type: application/json" -u "admin:admin" -d "{"appName" : "FlowApp", "query" : "from ABC select *" }" -k
- The above query fails and "Problem accessing: /query. Reason: Not Found" is displayed on the command prompt.
Why can't I find "/query"?
By default query API is available in a different port. Try port number 7443