GemFire Rest API


Introduction

This example demonstrates putting values into a VMware GemFire replicated region and retrieving the values using the GemFire REST API.

This is a simple example that demonstrates putting values into a replicated region and retrieving the values using the GemFire REST API. For enabling the REST API you can follow the official document.

This example assumes you have installed JDK11 and GemFire.


Steps

From the gemfire-examples/rest directory, build the example and run unit tests

 $ ../gradlew build

Next start the locator and two servers

 
 $ gfsh run --file=scripts/start.gfsh
 

Run the example to create and get entries using HTTP Java Client from the region

 $ ../gradlew run

Shut down the system.

 $ gfsh run --file=scripts/stop.gfsh

On this page