I'am using Geoserver since, well a long time now. This post is going to be a collection of THINGS that you might want to do with Geoserver. Sometime errors occur when trying to do something with Geoserver with the REST API and those I have posted aswell.
Goal adding a PostGIS table using the Geoserver REST API
curl -v -u yourUserName:PWD -XPOST -H "Content-type: text/xml" -d "<featureType><name>TABLENAME</name><nativeCRS>EPSG:3857</nativeCRS><srs>EPSG:3857</srs><enabled>true</enabled></featureType>" http://localhost:8080/geoserver/rest/workspaces/YOURWORKSPACENAME/datastores/DATASTORENAME/featuretypes
Errors :java.io.IOException: Error occured calculating bounds for someTableName
- SOLUTION_ permissions on PostGIS tables were incorrect same user as registered in the DB connection must be used when creating a new layer