ArcGIS API for JavaScript: Hosted/service_list (FeatureServer)

Built using the ArcGIS API for JavaScript