Developing based on GeoServer restful api

Steps to configure authentication

Rest properties file

Rest properties

Users, groups and roles

Rest test

Authentication filters

Add authentication filter

Authentication filter chains

Configure rest filter chain

Rest test successful

Restful APIs

GET http://<url>/geoserver/rest/workspaces

GET http://<url>/geoserver/rest/workspaces/<workspaceName>/layers

GET http://<url>/geoserver/rest/workspaces/<workspaceName>/coveragestores

GET http://<url>/geoserver/rest/workspaces/<workspaceName>/styles

GET http://<url>/geoserver/rest/layers/<layerName>/styles

GET http://<url>/geoserver/rest/styles

GET http://<url>/geoserver/rest/workspaces/<workspaceName>

GET http://<url>/geoserver/rest/workspaces/<workspaceName>/layers/<layerName>

GET http://<url>/geoserver/rest/workspaces/<workspaceName>/coveragestores/<storeName>

GET http://<url>/geoserver/rest/workspaces/<workspaceName>/styles/<styleName>.sld

GET http://<url>/geoserver/rest/workspaces/<workspaceName>/coveragestores/<storeName>>/coverages/<layerName>.json

POST http://<url>/geoserver/rest/workspaces

POST http://<url>/geoserver/rest/workspaces/<workspaceName>/coveragestores?configure=all

POST http://<url>/geoserver/rest/workspaces/<workspaceName>/coveragestores/<storeName>/coverages?configure=all&recalculate=nativebbox,latlonbbox

POST http://<url>/geoserver/rest/workspaces/<workspaceName>/coveragestores/<storeName>/coverages?configure=all&recalculate=nativebbox,latlonbbox

POST http://<url>/geoserver/rest/styles?name=<styleName>

PUT http://<url>/geoserver/rest/layers/<workspaceName>:<layerName>

PUT http://<url>/geoserver/rest/styles/<styleName>.xml?name=<styleName>

DELETE http://<url>/geoserver/rest/workspaces/<workspaceName>?recurse=true

DELETE http://<url>/geoserver/rest/workspaces/<workspaceName>/coveragestores/<storeName>.geotiff

DELETE http://<url>/geoserver/rest/workspaces/<workspaceName>/coveragestores/<storeName>/coverages/<layerName>?recurse=true

DELETE http://<url>/geoserver/rest/styles/<styleName>

Other Service APIs

GET http://<url>/geoserver/gwc/service/wms?REQUEST=GetFeatureInfo&SERVICE=WMS&SRS=<SRS>&STYLES=&TRANSPARENT=&VERSION=1.0.0&FORMAT=image/png&BBOX=<BBOX>&HEIGHT=<HEIGHT>&WIDTH=<WIDTH>&LAYERS=<workspaceName>:<layerName>&QUERY_LAYERS=<workspaceName>:<layerName>&INFO_FORMAT=application/json&X=<X>&Y=<Y>

GET http://<url>/geoserver/gwc/service/wms?SERVICE=WMS&VERSION=1.0.0&REQUEST=GetLegendGraphic&FORMAT=image/png&WIDTH=20&HEIGHT=20&layer=<workspaceName>:<layerName>[&style=<styleName> or &sld_body=<sldContent>]

GET http://<url>/geoserver/gwc/service/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=true&LAYERS=<workspaceName>:<layerName>&STYLES=<styleName>&FORMAT_OPTIONS=layout:style-editor-legend;fontAntiAliasing:true&LEGEND_OPTIONS=forceLabels:on;fontAntiAliasing:true&EXCEPTIONS=application/vnd.ogc.se_inimage&CRS=<CRS>&WIDTH=688&HEIGHT=768&BBOX=<BBOX>

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store