GemFire Rest API

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

View on GitHub

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

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

     $ ../gradlew build
    
  2. Next start the locator and two servers

     $ gfsh run --file=scripts/start.gfsh
    
  3. Run the example to create and get entries using HTTP Java Client from the region

     $ ../gradlew run
    
  4. Shut down the system:

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