Upload shapefile + associated style. Then activate style and make it default.
PUT -H "Content-type: application/zip" "http://localhost:8080/geoserver/rest/workspaces/exposure/datastores/AIBEP_schools/file.shp" --data-binary "@AIBEP_schools.zip"
POST -H "Content-type: text/xml" "http://localhost:8080/geoserver/rest/styles" --data-ascii "<style>AIBEP_schoolsAIBEP_schools.sld</style>"
PUT -H "Content-type: application/vnd.ogc.sld+xml" "http://localhost:8080/geoserver/rest/styles/AIBEP_schools" --data-binary "@AIBEP_schools.sld"
PUT -H "Content-type: text/xml" "http://localhost:8080/geoserver/rest/layers/AIBEP_schools" --data-ascii "AIBEP_schoolstrue"
Upload raster + associated style. Then activate style and make it default.
PUT -H "Content-type: image/tif" "http://localhost:8080/geoserver/rest/workspaces/exposure/coveragestores/Population_2010/file.geotiff" --data-binary "@Population_2010.tif"
POST -H "Content-type: text/xml" "http://localhost:8080/geoserver/rest/styles" --data-ascii "<style>Population_2010Population_2010.sld</style>"
PUT -H "Content-type: application/vnd.ogc.sld+xml" "http://localhost:8080/geoserver/rest/styles/Population_2010" --data-binary "@Population_2010.sld"
PUT -H "Content-type: text/xml" "http://localhost:8080/geoserver/rest/layers/Population_2010" --data-ascii "Population_2010true"
Create workspace
POST -H "Content-type: text/xml" "http://localhost:8080/geoserver/rest/workspaces" --data-ascii "futnuh"
Get workspace
GET -H "Content-type: text/xml" "http://localhost:8080/geoserver/rest/workspaces/futnuh"