[Geoserver-users] How to get layers from a particular workspace through the REST API?

Hi,

is there a way how to get the Layers of given Workspace through the REST API?

I am able to get all the Layers:

geoserver/rest/layers.json

And for given Workspace, I can get the Data Stores and for every Data Store I can get the Feature Types:

geoserver/rest/workspaces/Armenia/datastores.json
geoserver/rest/workspaces/Armenia/datastores/arm/featuretypes.json

But is there a way how to get the Layers and only those belonging to the given Workspace? Or do I have to get all the Layers and filter them using the Feature Types from the given Workspace?

Thanks a lot,

Michal