1
votes

We are trying to put data in Apahe Ignite Cache using this REST API provided by Ignite. https://apacheignite.readme.io/docs/rest-api.

I want to know if I can pass JSON data to it from spring boot application. Tried the basic GET and PUT it's working fine. But how to pass lots of Data from the JSON.?

Like Example JSON

{
Name : CYZ,
Id:12345
Dept: xyz
}

P.S The JSON is for understanding purposes only. I will tweak the answer as per my requirement.

Thanks.

1

1 Answers

2
votes

You can use a ConnectorMessageInterceptor to convert the JSON representation into a Java object.

You can specify it in Ignite configuration as ConnectorConfiguration#messageInterceptor property. ConnectorConfiguration can be specified as IgniteConfiguration#connectorConfiguration property.