Hi,
I am trying to publish a shapefile directory as datastore in geoserver (2.2.x) and I was going through these pages.
http://docs.geoserver.org/2.1.2/user/restconfig/rest-config-examples/rest-config-examples-curl.html
http://docs.geoserver.org/stable/en/user/rest/examples/curl.html
curl -v -u admin:geoserver -XPUT -H "Content-type: text/plain"
-d "file:///data/shapefiles/"
"http://localhost:8080/geoserver/rest/workspaces/acme/datastores/shapefiles/external.shp?configure=all"
When I create the store, the datastore is created and layers are published. But when I check the store information, it is showing of type “Shapefile” instead of “Directory of spatial files (shapefiles)”. I am not sure if this is a bug, but wanted to check with the community.
As a work around for now, I am editing the datastore.xml manually as directory of shapefiles and reloading the config to see my expected changes.
Thanks,
Ravi.