API Proposal

Please note that we do not intend the average user to use these commands and XML files to update GWC's configuration. We hope to provide a JavaScript? GUI, the commands below are for advanced users and those that want to modify GWC's configuration programatically. As shown below, the default user is geowebcache and default password is secured, but we may switch to shipping with a scrambled password for increased security.

URIGETDELETEPUTPOST
/rest/layers/Retrieve a listing of all
layers
---
/rest/layers/{layer}Retrieve the configuration
for the layer
Delete this layer-Create a new layer (POST to non-existing layer)
Overwrite existing layer (POST to existing layer)

To test, use cURL following the guidelines below:

DELETE

POST XML

POST JSON

GET XML

GET JSON