[Geoserver-users] REST and documentation of the XML config files

Hi,

People seem to be rather interested in configuring this and that with REST but based on the amount of questions on the mailing list it is not always so simple. We have a bunch of examples in http://docs.geoserver.org/stable/en/user/rest/examples/curl.html which are good starting point. But do we have documents about how the elements in the admin utility are mapped to corresponding XML files? For example the GUI page for configuring topp:states is at
http://localhost:8080/geoserver/web/?wicket:bookmarkablePage=:org.geoserver.web.data.store.DataAccessEditPage&storeName=states_shapefile&wsName=topp
It modifies XML file \data_dir\workspaces\topp\states_shapefile\datastore.xml. But do we have a document about what happens when user checks for example option "Create spatial index if missing/outdated"? By keeping datastore.xml open in text editor and toggling the selection I learned that it is adding/removing this entry
<connectionParameters>
    <entry key="create spatial index">true</entry>

Those who make configuration with the admin utility do not need to care about XML files but for the REST folks it would be essential to know the mapping between GUI controls and elements in the XML files.

-Jukka Rahkonen-

Those connection parameters come from the GeoTools library, which does provide documentation:

Maybe cross-linking would be useful?

···

Jody Garnett

On Wed, Sep 3, 2014 at 7:35 AM, Rahkonen Jukka (Tike) <jukka.rahkonen@anonymised.com> wrote:

Hi,

People seem to be rather interested in configuring this and that with REST but based on the amount of questions on the mailing list it is not always so simple. We have a bunch of examples in http://docs.geoserver.org/stable/en/user/rest/examples/curl.html which are good starting point. But do we have documents about how the elements in the admin utility are mapped to corresponding XML files? For example the GUI page for configuring topp:states is at
http://localhost:8080/geoserver/web/?wicket:bookmarkablePage=:org.geoserver.web.data.store.DataAccessEditPage&storeName=states_shapefile&wsName=topp
It modifies XML file \data_dir\workspaces\topp\states_shapefile\datastore.xml. But do we have a document about what happens when user checks for example option “Create spatial index if missing/outdated”? By keeping datastore.xml open in text editor and toggling the selection I learned that it is adding/removing this entry

true

Those who make configuration with the admin utility do not need to care about XML files but for the REST folks it would be essential to know the mapping between GUI controls and elements in the XML files.

-Jukka Rahkonen-


Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users