I'm trying to get a simple list of fields from an ArcGIS Online Hosted feature service.
When I paste the local service url into a web browser, I get back a JSON string that includes the fields.
https://***.*******.com/intgis3/rest/services/FCC/fcc_zones/MapServer/0/fields?f=json
when I tried the same thing with the AGOL hosted FeatureService, and included a token I got back this error {"error":{"code":400,"message":"Error: Feature (ID: fields) not found","details":["Unable to retrieve feature."]}}
I tried with POST and a simple webClient.DownloadString(). Once again that worked for my local service but not the AGOL service.
how can I get just a list of fields of hosted feature service?
I'm going to do a /query with fields="*" and manipulate that. But it sure would be easier if this worked in AGOL
my local ArcGIS Server is 10.71