I would like to configure the service settings per workspace through the REST interface, but when I try to access the service settings (through GET http://localhost:8080/geoserver/rest/services/wms/workspaces/gemeenten/settings.xml) for a workspace that does not have a workspace specific service defined I receive the folllowing response:
Service for workspace gemeenten does not exist
In the GeoServer web interface I can enable workspace specific settings for each of the OGC webservices (WCS,WFS,WMS), by checking the service in the workspace overview (see screenshot ), but I would like to do this through the REST interface. Is there a way to enable a workspace specific service through the REST API? I looked through the docs and searched the internet, but I could not find anything.
A PUT request with the settings file in the body (https://gist.github.com/arbakker/c9ca04dc5c2d9b1c9b697329fda7ef50) at /rest/resource/workspaces/cite/wms.xml, will create the wms.xml settings file in the cite workspace folder. After reloading the configuration, through /rest/reload a workspace specific service is created.
For this to work I need to reliably generate the WMS service ID:
WMSInfoImpl—6d507638:13a005ea3a2:-7ff3
Does anyone know what requirements the id needs to fulfil for it to be valid?
I would like to configure the service settings per workspace through the REST interface, but when I try to access the service settings (through GET http://localhost:8080/geoserver/rest/services/wms/workspaces/gemeenten/settings.xml) for a workspace that does not have a workspace specific service defined I receive the folllowing response:
Service for workspace gemeenten does not exist
In the GeoServer web interface I can enable workspace specific settings for each of the OGC webservices (WCS,WFS,WMS), by checking the service in the workspace overview (see screenshot ), but I would like to do this through the REST interface. Is there a way to enable a workspace specific service through the REST API? I looked through the docs and searched the internet, but I could not find anything.