Does Esri provide a JavaScript API to access information at the following URL:
https://<server>/arcgis/rest/services/<service>/MapServer/layers
We can obviously access it via a fairly plain HTTP call, but it seems that most of the Esri jsapi call handle authentication and error handling already. We would like to avoid rebuilding that if I don't have to.
We looked at the documentation for ArcGISDynamicMapServiceLayer as that is what we use for our data layer in the map, but it seems that LayerInfo does not contain a lot of information (it looks more like the straight call to /MapServer)
What we are really after for each layer is:
- Field aliases
- Subtype field information
- Domains
This information is fully available on the /MapServer/layers call.