Does anyone have a curl example for using the GeoServer REST API to create an ImageMosaic?
The rasters (granules?)that I want to use local on the GeoServer file system. It work through the UI interface, but I can't get it to work with the REST API. I have tried many combinations of commands over many days and seek an example that works. Here is my latest attempt:
curl -X POST -u user:passwd -H "Content-Type: application/xml" -d "<coverageStore><name>test-mosaic</name><type>ImageMosaic</type><enabled>true</enabled><url>file:mosaics/testing/testmosaic</url></coverageStore>" "http://somehost.org/geoserver/rest/workspaces/test/coveragestores/test-mosaic/coverages.xml"
When I run this I get the following response:
Cannot cast org.geoserver.catalog.impl.CoverageStoreInfoImpl to org.geoserver.catalog.CoverageInfo