Describe Named Maps
Description
Takes a list of maps as the input and gives the description of those maps.
ACL Authorization Flow
To get the description of maps, the user (or the role they belong to) needs EXECUTE permission on the Named table.
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}
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 returns the JSON object in the response:
{
"mapDescriptions":[
{
"name":"/Samples/NamedMaps/CountriesWithShapeTable",
"mapDescription":{...}
},
{
"name":"/Samples/NamedMaps/MapWithLayer",
"mapDescription":{…}
},
{
"name":"/DoesNotExist",
"errorMessage":"RepositoryEx_ResourceNotFound: Resource was not found - /DoesNotExist"
}
]
}