Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 1.51 KB

README.md

File metadata and controls

42 lines (28 loc) · 1.51 KB

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