I have three workspaces, and each has a layer named Land_Cover_Vector. I’m trying to use the REST API to get a list of all layers, but when I request: http://localhost/geoserver/rest/layers.xml
The HTML or XML links to http://localhost/geoserver/rest/layers/Land_Cover_Vector.xml three times, not to each individual layer.
If I have to iterate through all workspaces to find all the actual layer links, what is the layers.xml endpoint for? Should layers.xml link to layers in their workspaces?
–
Similarly, I have a layergroup with each of the Land_Cover_Vector layers in it.
When I try to use the REST API to learn about the layergroup I request http://localhost/geoserver/rest/layergroups/All_Land_Cover.xml. It also links to http://flatrock2.mapfeeder.net/geoserver/rest/layers/Land_Cover_Vector.xml three times.
Is there a way to determine which layers are members of the layer group?
Thank you,
Michael Moore