List Named Layers

Description

Returns a list of named layers that are available within the repository.

ACL Authorization Flow

To list named layers within the repository, the user (or the role they belong to) needs EXECUTE permission on the Named table.

Note: All the named maps or named layers are filtered from the Jackrabbit search with EXECUTE permission. The response will contain those layers on which the user has EXECUTE permission. If the user has no EXECUTE permissions on any layers, then the response returns an empty list.

HTTP GET URL Format

The following format is used for HTTP GET requests:

HTTP GET /layers.rep

Parameters

For information on the parameter types listed below, see Request URL Data Types.

Parameter Type Required Description
rep String yes The representation to be returned. Supported representation is JSON.

Returns

Returns a list of layers in the specified format.

Example

This example returns a list of available layers in the repository, as an array of String values.

http://hostname:port/rest/Spatial/MappingService/layers.json

The following example shows the format of the JSON object returned in the response:

{
    "listNamedLayersResponse":
        {“namedLayersList”:[
        "/Samples/NamedLayers/WorldFeatureLayer",
        "/Samples/NamedLayers/WorldLabelLayers",
        "/Samples/NamedLayers/OceanFeatureLayer"
        ]
    }
}