[Geoserver-users] REST problem

curl -v -u admin:geoserver -XPOST -H "Content-type: text/xml" \
  -d "<featureType><name>bioimplendt</name> <title>theNewTitle</title></featureType>" \
  http://localhost/geoserver/rest/workspaces/wms/datastores/db/featuretypes

curl -v -u admin:geoserver -XGET "http://localhost/geoserver/rest/layers/wms:bioimplendt&quot;
curl -v -u admin:geoserver -XDELETE "http://localhost/geoserver/rest/layers/wms:bioimplendt&quot;
curl -v -u admin:geoserver -XGET "http://localhost/geoserver/rest/layers/wms:bioimplendt&quot;
No such layer: wms:bioimplendt

curl -v -u admin:geoserver -XPOST -H "Content-type: text/xml" \
  -d "<featureType><name>bioimplendt</name> <title>theNewTitle</title></featureType>" \
  http://localhost/geoserver/rest/workspaces/wms/datastores/db/featuretypes

this returns - Resource named 'bioimplendt' already exists in store: 'db'

When I run these to add a layer from database and delete it I cannot add it back. In the gui I see the layer as published, but not showing in layers or layer preview. Is this correct?

Geoserver 2.5.2

Thanks,
Jim