Hi All,
I am trying to add a coveragestore and then a coverage using REST on GeoServer 2.9.1.
Adding the coveragestore works fine with the following cURL call:
curl -X POST -u admin:geoserver -H “Content-Type: application/json” -d ’
{
“coverageStore”: {
“name”: “rest_test_01”,
“enabled”: “true”,
“type”: “GeoTIFF”,
“workspace”: “test”,
“url”: “file:data/sf/sfdem.tif”
}
}
’ “http://myhost:8080/geoserver/rest/workspaces/test/coveragestores.json”
However, the second step of adding the coverage, e.g.:
curl -X POST -u admin:geoserver -H “Content-Type: application/json” -d '{
“coverage”: {
“name”: “rest_test_01”
}
}
’ “http://myhost:8080/geoserver/rest/workspaces/test/coveragestores/rest_test_01/coverages.json”
Fails with the error:
“:Resource native name must not be null”
Any help or insight would be much appreciated.
Thanks,
Scott