Discussion:
[Geoserver-users] List of all layers via REST
Tomas Kliment
2017-04-27 15:43:42 UTC
Permalink
Dear all,

Is there a way to list all the layers published in a geoserver instance?

Something as can be done with GWC: geoserver/gwc/rest/layers

In my code I need to first check if a file was published in geoserver as a
layer. I have files divided into several data themes corresponding to
geoserver workspaces, thus would be easier to check against the whole Layer
list if possible.

Thanks in advance for help,
Tomas
--
------------------------------------------------------------------
Ing. Tomáš Kliment, PhD.
<http://about.me/klimeto>
https://bolegweb.geof.unizg.hr <https://bolegweb.geof.unizg.hr>

Email: ***@gmail.com

Cell: 00 421 907 232 019 (SK)
Tomas Kliment
2017-04-27 16:13:14 UTC
Permalink
apologies it works also without /gwc/ as following:
/geoserver/rest/layers.json
Tomas
Post by Tomas Kliment
Dear all,
Is there a way to list all the layers published in a geoserver instance?
Something as can be done with GWC: geoserver/gwc/rest/layers
In my code I need to first check if a file was published in geoserver as a
layer. I have files divided into several data themes corresponding to
geoserver workspaces, thus would be easier to check against the whole Layer
list if possible.
Thanks in advance for help,
Tomas
--
------------------------------------------------------------------
Ing. Tomáš Kliment, PhD.
<http://about.me/klimeto>
https://bolegweb.geof.unizg.hr <https://bolegweb.geof.unizg.hr>
Cell: 00 421 907 232 019 <+421%20907%20232%20019> (SK)
--
------------------------------------------------------------------
Ing. Tomáš Kliment, PhD.
<http://about.me/klimeto>
https://bolegweb.geof.unizg.hr <https://bolegweb.geof.unizg.hr>

Email1: ***@gmail.com

Email2: ***@mk18sro.xyz

Email3: ***@datacove.eu

Cell1: 00 421 907 232 019 (SK)

Cell2: 00 39 389 495 5954 (IT)
Loading...