I have created a coverage store in GeoServer using the REST API.
http://localhost:8010/geoserver/rest/workspaces/sdwdrnTif_Test/coveragestores?configure=all
<coverageStore>
<name>postman-seonyudo</name>
<workspace>sdwdrnTif_Test</workspace>
<enabled>true</enabled>
<type>GeoTIFF</type>
<url>file:test_TIFF/seonyudo.tif</url>
</coverageStore>
Coverage store has been successfully created, so i wanted to publish a WMS layer for the coverage store.
I tried these : 1. http://localhost:8010/geoserver/rest/workspaces/sdwdrnTif_Test/coveragestores/postman-seonyudo/coverages
<coverages>
<coverage>
<name>seonyudo</name>
</coverage>
</coverages>
it returned 500 error.
http://localhost:8080/geoserver/rest/workspaces/sdwdrnTif_Test/coveragestores/seonyudoTEST/external.geotiff?configure=first&coverageName=seonyudoTEST
file://C:\tif\seonyudo2.tif
And it gave me a 405 err code with this message:
"Error 405 Coverage store found, but it does not support resource harvesting."
Can anyone please tell me what I am doing wrong? How can I create a layer for this store using GeoServer REST API?