[Geoserver-devel] [JIRA] (GEOS-7626) Quickly filter REST API for disabled stores / resources

Jody Garnett [Administrator] created an issue

GeoServer / New FeatureGEOS-7626

Quickly filter REST API for disabled stores / resources

Issue Type:

New FeatureNew Feature

Assignee:

Jody Garnett [Administrator]

Components:

REST

Created:

06/Jul/16 12:21 AM

Priority:

MediumMedium

Reporter:

Jody Garnett [Administrator]

You can use the REST API to determine layer status:

http://<GEOSERVER>/rest/workspaces/<MYWORKSPACE>/datastores/<MYSTORE>/featuretypes/<MYLAYER>.xml

And check for &lt;enabled&gt;false&lt;/enabled&gt; one at a time.

Using this approach it is labor intensive to scan through available layers and detect those which are unavailable.
Improvement would be to add an parameter enabled=true or enabled=false filter when listing stores or resources.

  • /workspaces/&lt;ws&gt;/datastores.json?enabled=false

Since Feature types already provide several parameters it is a bit more tricky to think of sensible addition:

  • /workspaces/&lt;ws&gt;/datastores/&lt;ds&gt;/featuretypes.json?enabled=false - only feature types which are configured but are distabled are returned

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v1000.126.1#100004-sha1:15ab2b1)

Atlassian logo