Suppose, there is already an internal REST API in place that returns geoJSON.
Is there a way to replace the ArcGIS rest service with an internal API?
Example:
var featureLayer = new FeatureLayer({ url: "https://arc.gis/arcgis/rest/services/Random/Randomservice/Map/0" });
to
// This is the issue in question
var featureLayer = new FeatureLayer({ url: "https://internal/rest/services/Random/Randomservice/Map/0" });
The question may need to be updated.
Thank you.