Describe Named Maps
Description
Takes a list of maps as the input and gives the description of those maps.
HTTP POST URL Format
The following format is used for HTTP POST requests:
HTTP POST: /maps.json
POST DATA: {
"namedMapsList": ["/Samples/NamedMaps/CountriesWithShapeTable",
"/Samples/NamedMaps/MapWithLayer",
"/DoesNotExist"]
}
POST BODY: Content-Type:application/json {list of maps}
Parameters
For information on the parameter types listed below, see Request URL Data Types.
Parameter | Type | Required | Description |
---|---|---|---|
maps=<maps> | List of Strings | optional | Comma-separated list containing paths of maps that needs to be described. For example: /Samples/NamedMaps/CountriesWithShapeTable,/Samples/NamedMaps/MapWithLayer. |
Returns
Returns the metadata of maps.
Example
Returns the metadata for the CountriesWithShapeTable and MapWithLayer maps located in the /Samples/NamedMaps directory in the repository, in the Locale English (US).
http://<server>:<port>/rest/Spatial/MappingService/maps.json
{
"namedMapsList": ["/Samples/NamedMaps/CountriesWithShapeTable",
"/Samples/NamedMaps/MapWithLayer",
"/DoesNotExist"]
}
The following example shows the JSON object returned in the response:
{
"maps": [
{
"MapDescription": {...}
},
{
"MapDescription": {...}
}
],
"errorMessages": [
{
"name": "/DoesNotExist",
"message": "RepositoryEx_ResourceNotFound: Resource was not found - /DoesNotExist"
}
]
}