Using the web admin page, I created two layers in different workspace but with the same name:
In the admin view I see something as this
Workspace Store Layer Name
WK1 PostGIS1 mylayer
WK2 PostGIS2 mylayer
All works very well, except when I try to access the properties of these layers with Geoserver REST API.
/layers.xml give me something like:
<layer><name>mylayer</name><atom:link rel="alternate" href="http://localhost:8080/geoserver/rest/layers/mylayer.xml" type="application/xml"/></layer>
<layer><name>mylayer</name><atom:link rel="alternate" href="http://localhost:8080/geoserver/rest/layers/mylayer.xml" type="application/xml"/></layer>
Two identical entries! And when I ask for the layer with /layers/mylayer.xml I only get the properties of the first...
How can I access the properties of the second layer with the REST API? Can it be done or it's a limitation or a bug of the REST API?