In the previous tutorial, we have installed, setup, ran single and multi-node cluster of ignite server. Now, let’s advance towards some useful features. In this tutorial, we will briefly touch upon an exciting feature; ignite provides HTTP REST capability. We can use this capability to interact with the ignite cluster over HTTP or HTTPS. We can use REST APIs to read, write (many many more capabilities) etc from or to the ignite cache.
- Ensure that the ignite server node is running.
- By default, ignite runs on port 8080. hit the following url http://127.0.0.1:8080/ignite?cmd=version from browser or using curl command. You will notice an error stating that connection was not successful
- Hmm!! So, we will have to do prep work in order to make it work. Change your directory to $IGNITE_HOME/libs/optional folder.
- Copy the ignite-rest-http folder back to $IGNITE_HOME/libs/ folder.
- Restart the ignite server node. [You may want to check the previous blog https://iteritory.com/msadrud/install-or-setup-apache-ignite-in-windows-step-by-step-tutorial/ if you are not sure how to do it]
- Now, again hit the following url http://127.0.0.1:8080/ignite?cmd=version from browser or using curl command.
- This time, you will notice a successful response like following. In my scenario, I am using ignite version 2.0.0 –
1{"successStatus":0,"error":null,"sessionToken":null,"response":"2.0.0"}
Srinivasulu Pullaginti
March 17, 2019Hi Sadruddin Md,
Nice Article I haven’t got the response (Version)which u have mentioned in 7th point.
Sadruddin Md
March 23, 2019Hi Srinivas, which ignite version are you testing with?
JAYAPRAKASH K
April 30, 2020Hi Sadruddin Md,
Can you please explain how to enable HTTPS for Rest API?