Hello Experts
We have a lot of data in our AGOL (feature layer, maps, and others). I am going to create an API (using NodeJS) to connect to AGOL and create an API with different endpoints that can be a data source for a front-end app.
Please let me know if anyone has tried this if a sample is available, and if there are any issues/challenges that I may encounter.
This data may be moved to an enterprise (aka ArcGIS Portal) in the future. The API should work both in AGOL and the enterprise.
The REST API can work with both AGOL and Enterprise services, or you can use the JavaScript SDK if you want a more fleshed-out library.