tree: e9bab5919525d00b4334f5fc42d9c9b2eff22783 [path history] [tgz]
  1. README.md
  2. scripts/
  3. src/
rest/README.md

Geode REST API example

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

This example assumes you have installed Java and Geode.

Steps

  1. From the geode-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