This example demonstrates how to manage system properties using REST API. System Properties Example is able to expose all registered system properties, find out its values and even change a given property value.
The mapping of the URI path space is presented in the following table:
| URI path | Resource class | HTTP methods | 
|---|---|---|
| /properties | PropertyNamesResource | GET | 
| /properties/{prop_name} | PropertyResource | GET | 
| /properties/{prop_name} | PropertyResource | PUT | 
Run the example as follows:
mvn clean compile exec:java
This deploys the example using Grizzly container. You can access the application at: