REST API - Add an option to get all LayerGroups, with and without a workspace specified

Description

When using the following REST API

GET http://testserver.com/geoserver/rest/layergroups.json

I would expect every LayerGroup to be returned but only those layergroups without a workspace specified are returned. This means I'd have to iterate every workspace to get all layergroups which seems very painful

Environment

None

Status

Assignee

Unassigned

Reporter

Iain Hunter

Triage

None

Fix versions

None

Affects versions

Components

Priority

High
Configure