gcorradini

REST API Documentation Question on Export Map Operation

Discussion created by gcorradini on Dec 1, 2011
Latest reply on Dec 1, 2011 by gcorradini
Hello,
I'm trying to find a detailed answer about how the REST API handles requests to layers with sublayers (i'm using the service at the bottom of this post as an example).

1) It seems that a request to the parent layer (2) will automatically return all the parent's sublayers. Is this always true?

2) Is this true even if the children of the parent have their default visibility set to false and only the parent's id is requested using show (show:2)?

The API documentation doesn't get into these specifics and I would like to find where it is documented.

http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/2

Outcomes