[Geoserver-devel] [JIRA] (GEOS-9300) json response is not consistent for get layers REST call

Sanjay Dhonde created an issue

GeoServer / BugGEOS-9300

json response is not consistent for get layers REST call

Issue Type:

BugBug

Affects Versions:

2.15.1

Assignee:

Unassigned

Created:

02/Aug/19 5:28 PM

Environment:

Windows OS.

Priority:

HighHigh

Reporter:

Sanjay Dhonde

In API, GET: /workspaces/

{workspaceName}

/layers
When number of layers are zero, it returns * “layers”:" "* (i.e. empty string as value) .
When number of layers > zero, it returns json object (i.e.

{…}

) as value as shown in sample response below.

{
“layers”: {
“layer”: [

{ “name”: “bugsites”, “href”: “http://localhost:8080/geoserver/rest/workspaces/sf/layers/bugsites.json” }

,
]
}
}

Ideally it should return empty json object when no layers available.

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100106-sha1:9f2d32f)

Atlassian logo