List Named Layers

Description

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

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://www.pbbi.com/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"
        ]
    }
}