Skip to content

jmarin/Geoserver-REST-Examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

GeoServer REST Examples

Global Settings

GET

curl -u admin:geoserver -XGET -H 'Content-type: text/xml' http://localhost:8080/geoserver/rest/settings.xml

curl -u admin:geoserver -XGET -H 'Content-type: text/xml' http://localhost:8080/geoserver/rest/settings.json

PUT

curl -u admin:geoserver -XPUT -H 'Content-type: text/xml' -d@'settings/globalSettings.xml' http://localhost:8080/geoserver/rest/settings

DELETE

curl -u admin:geoserver -XDELETE -H 'Content-type: text/xml' http://localhost:8080/geoserver/rest/settings


Global Contact

GET

curl -u admin:geoserver -XGET -H 'Content-type: text/xml' http://localhost:8080/geoserver/rest/settings/contact.xml

PUT

curl -u admin:geoserver -XPUT -H 'Content-type: text/xml' -d@'contact/globalContact.xml' http://localhost:8080/geoserver/rest/settings/contact.xml


DELETE

curl -u admin:geoserver -XDELETE -H 'Content-type: text/xml' http://localhost:8080/geoserver/rest/settings/contact.xml



Global WMS

GET

curl -u admin:geoserver -XGET -H 'Content-type: text/xml' http://localhost:8080/geoserver/rest/services/wms/settings.xml

PUT

curl -u admin:geoserver -XPUT -H 'Content-type: text/xml' -d@'services/wms/GlobalWMS.xml'  http://localhost:8080/geoserver/rest/services/wms/settings


Global WFS

GET

curl -u admin:geoserver -XGET -H 'Content-type: text/xml'  http://localhost:8080/geoserver/rest/services/wfs/settings.xml

PUT

curl -u admin:geoserver -XPUT -H 'Content-type: text/xml' -d@'services/wfs/GlobalWFS.xml'  http://localhost:8080/geoserver/rest/services/wfs/settings

Global WCS

GET

curl -u admin:geoserver -XGET -H 'Content-type: text/xml' http://localhost:8080/geoserver/rest/services/wcs/settings.xml

PUT

curl -u admin:geoserver -XPUT -H 'Content-type: text/xml' -d@'services/wcs/GlobalWCS.xml'  http://localhost:8080/geoserver/rest/services/wcs/settings


Local WMS

GET

curl -u admin:geoserver -XGET -H 'Content-type: text/xml' http://localhost:8080/geoserver/rest/services/wms/LocalWorkspace/settings.xml

POST

curl -u admin:geoserver -XPOST -H 'Content-type: text/xml' -d@'services/wms/LocalWMS.xml'  http://localhost:8080/geoserver/rest/services/wms/LocalWorkspace/settings

PUT

curl -u admin:geoserver -XPUT -H 'Content-type: text/xml' -d'<wmsinfo><workspace><name>LocalWorkspace</name></workspace><enabled>false</enabled></wmsinfo>'  http://localhost:8080/geoserver/rest/services/wms/LocalWorkspace/settings

DELETE

curl -u admin:geoserver -XDELETE -H 'Content-type: text/xml' http://localhost:8080/geoserver/rest/services/wms/LocalWorkspace/settings


Local WFS

GET

curl -u admin:geoserver -XGET -H 'Content-type: text/xml' http://localhost:8080/geoserver/rest/services/wfs/LocalWorkspace/settings.xml

POST

curl -u admin:geoserver -XPOST -H 'Content-type: text/xml' -d@'services/wfs/LocalWFS.xml'  http://localhost:8080/geoserver/rest/services/wfs/LocalWorkspace/settings

PUT

curl -u admin:geoserver -XPUT -H 'Content-type: text/xml' -d'<wfsinfo><workspace><name>LocalWorkspace</name></workspace><enabled>false</enabled></wfsinfo>'  http://localhost:8080/geoserver/rest/services/wfs/LocalWorkspace/settings

DELETE

curl -u admin:geoserver -XDELETE -H 'Content-type: text/xml' http://localhost:8080/geoserver/rest/services/wfs/LocalWorkspace/settings


Local WCS

GET

curl -u admin:geoserver -XGET -H 'Content-type: text/xml' http://localhost:8080/geoserver/rest/services/wcs/LocalWorkspace/settings.xml

POST

curl -u admin:geoserver -XPOST -H 'Content-type: text/xml' -d@'services/wcs/LocalWCS.xml'  http://localhost:8080/geoserver/rest/services/wcs/LocalWorkspace/settings

PUT

curl -u admin:geoserver -XPUT -H 'Content-type: text/xml' -d'<wcsinfo><workspace><name>LocalWorkspace</name></workspace><enabled>false</enabled></wcsinfo>'  http://localhost:8080/geoserver/rest/services/wcs/LocalWorkspace/settings

DELETE

curl -u admin:geoserver -XDELETE -H 'Content-type: text/xml' http://localhost:8080/geoserver/rest/services/wcs/LocalWorkspace/settings


About

GeoServer REST Examples

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published